summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
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 " 東京都">