ruby-changes:37011
From: hsbt <ko1@a...>
Date: Thu, 1 Jan 2015 21:42:08 +0900 (JST)
Subject: [ruby-changes:37011] hsbt:r49092 (trunk): * doc/regexp.rdoc: fix regexp docs for whitespace character.
hsbt 2015-01-01 21:41:54 +0900 (Thu, 01 Jan 2015) New Revision: 49092 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49092 Log: * doc/regexp.rdoc: fix regexp docs for whitespace character. [ruby-dev:48765] [Bug #10624] Modified files: trunk/ChangeLog trunk/doc/regexp.rdoc Index: doc/regexp.rdoc =================================================================== --- doc/regexp.rdoc (revision 49091) +++ doc/regexp.rdoc (revision 49092) @@ -128,8 +128,8 @@ The following metacharacters also behave https://github.com/ruby/ruby/blob/trunk/doc/regexp.rdoc#L128 * <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 Index: ChangeLog =================================================================== --- ChangeLog (revision 49091) +++ ChangeLog (revision 49092) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Jan 1 21:41:49 2015 SHIBATA Hiroshi <shibata.hiroshi@g...> + + * doc/regexp.rdoc: fix regexp docs for whitespace character. + [ruby-dev:48765] [Bug #10624] + Thu Jan 1 17:50:52 2015 Nobuyoshi Nakada <nobu@r...> * test/ruby/test_rubyoptions.rb: try locale encoding name. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/