Project

General

Profile

Actions

Misc #10836

closed

Add Documentation to Regexp

Added by tom-lord (Tom Lord) over 7 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
[ruby-core:68056]

Description

Documented non-subexp option toggling

Regexp option toggling can be done in two forms:

/(?imx:subexpr)/ - this was already mentioned in docs
/before(?imx)after/ - there was no mention of this.

This section of the documentation could be improved further, see the following from the Onigmo docs:

(?imxdau-imx)      option on/off
                     i: ignore case
                     m: multi-line (dot(.) match newline)
                     x: extended form

                   character set option (character range option)
                     d: Default (compatible with Ruby 1.9.3)
                        \w, \d and \s doesn't match non-ASCII characters.
                        \b, \B and POSIX brackets use the each encoding's
                        rules.
                     a: ASCII
                        ONIG_OPTION_ASCII_RANGE option is turned on.
                        \w, \d, \s and POSIX brackets doesn't match
                        non-ASCII characters.
                        \b and \B use the ASCII rules.
                     u: Unicode
                        ONIG_OPTION_ASCII_RANGE option is turned off.
                        \w (\W), \d (\D), \s (\S), \b (\B) and POSIX
                        brackets use the each encoding's rules.

Files

Updated by hsbt (Hiroshi SHIBATA) about 4 years ago

  • Status changed from Open to Assigned
  • Assignee set to 13939
Actions #3

Updated by aycabta (aycabta .) almost 4 years ago

  • Status changed from Assigned to Closed

Applied in changeset trunk|r65269.


Improve doc of Regexp about "ignore case" behavior [Misc #10836]

  • doc/regexp.rdoc: RDoc for "ignore case" behavior
Actions

Also available in: Atom PDF