* doc/regexp.rdoc: fix regexp docs for whitespace character.
[ruby-dev:48765] [Bug #10624] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
418c1375fb
commit
d03c86391b
@ -1,3 +1,8 @@
|
||||
Thu Jan 1 21:41:49 2015 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* doc/regexp.rdoc: fix regexp docs for whitespace character.
|
||||
[ruby-dev:48765] [Bug #10624]
|
||||
|
||||
Thu Jan 1 17:50:52 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* test/ruby/test_rubyoptions.rb: try locale encoding name.
|
||||
|
@ -128,8 +128,8 @@ The following metacharacters also behave like character classes:
|
||||
* <tt>/\D/</tt> - A non-digit character (<tt>[^0-9]</tt>)
|
||||
* <tt>/\h/</tt> - A hexdigit character (<tt>[0-9a-fA-F]</tt>)
|
||||
* <tt>/\H/</tt> - A non-hexdigit character (<tt>[^0-9a-fA-F]</tt>)
|
||||
* <tt>/\s/</tt> - A whitespace character: <tt>/[ \t\r\n\f]/</tt>
|
||||
* <tt>/\S/</tt> - A non-whitespace character: <tt>/[^ \t\r\n\f]/</tt>
|
||||
* <tt>/\s/</tt> - A whitespace character: <tt>/[ \t\r\n\f\v]/</tt>
|
||||
* <tt>/\S/</tt> - A non-whitespace character: <tt>/[^ \t\r\n\f\v]/</tt>
|
||||
|
||||
POSIX <i>bracket expressions</i> are also similar to character classes.
|
||||
They provide a portable alternative to the above, with the added benefit
|
||||
|
Loading…
x
Reference in New Issue
Block a user