From: lord.thom@... Date: 2015-02-07T23:44:19+00:00 Subject: [ruby-core:68057] [Ruby trunk - Misc #10836] Add Documentation to Regexp Issue #10836 has been updated by Tom Lord. File 0001-adding-documentation-for-non-subexp-option-toggling.patch added ---------------------------------------- Misc #10836: Add Documentation to Regexp https://bugs.ruby-lang.org/issues/10836#change-51442 * Author: Tom Lord * Status: Open * Priority: Normal * Assignee: ---------------------------------------- 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-------------------------------- 0001-adding-documentation-for-non-subexp-option-toggling.patch (1.12 KB) -- https://bugs.ruby-lang.org/