diff --git a/ChangeLog b/ChangeLog index 3acf3257de..26a28e6da8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Jan 1 21:41:49 2015 SHIBATA Hiroshi + + * doc/regexp.rdoc: fix regexp docs for whitespace character. + [ruby-dev:48765] [Bug #10624] + Thu Jan 1 17:50:52 2015 Nobuyoshi Nakada * test/ruby/test_rubyoptions.rb: try locale encoding name. diff --git a/doc/regexp.rdoc b/doc/regexp.rdoc index 810f15ce1a..02a5f300ee 100644 --- a/doc/regexp.rdoc +++ b/doc/regexp.rdoc @@ -128,8 +128,8 @@ The following metacharacters also behave like character classes: * /\D/ - A non-digit character ([^0-9]) * /\h/ - A hexdigit character ([0-9a-fA-F]) * /\H/ - A non-hexdigit character ([^0-9a-fA-F]) -* /\s/ - A whitespace character: /[ \t\r\n\f]/ -* /\S/ - A non-whitespace character: /[^ \t\r\n\f]/ +* /\s/ - A whitespace character: /[ \t\r\n\f\v]/ +* /\S/ - A non-whitespace character: /[^ \t\r\n\f\v]/ POSIX bracket expressions are also similar to character classes. They provide a portable alternative to the above, with the added benefit