aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-11-03 22:53:17 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-11-03 22:53:17 +0900
commitf8b3d7d1599ecaa6760d947609f966a7a5b22e2c (patch)
treee73fa0fbef5b8e745dad33eea707cc9bfdbb2f6d /doc
parent782d1b8fb0a039cedef9ad9c94f432dad51901e6 (diff)
downloadruby-f8b3d7d1599ecaa6760d947609f966a7a5b22e2c.tar.gz
[DOC] \s in regexp is not same as in string [ci skip]
Diffstat (limited to 'doc')
-rw-r--r--doc/regexp.rdoc3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/regexp.rdoc b/doc/regexp.rdoc
index 20e8e3634a..c14a145831 100644
--- a/doc/regexp.rdoc
+++ b/doc/regexp.rdoc
@@ -69,7 +69,8 @@ a backslash literally, backslash-escape it: <tt>\\\\</tt>.
/a\\\\b/.match('a\\\\b') #=> #<MatchData "a\\b">
Patterns behave like double-quoted strings so can contain the same
-backslash escapes.
+backslash escapes (the meaning of <tt>\s</tt> is different a little however,
+see bellow[#label-Character+Classes]).
/\s\u{6771 4eac 90fd}/.match("Go to 東京都")
#=> #<MatchData " 東京都">