diff options
author | Nobuyoshi Nakada <[email protected]> | 2019-11-03 22:53:17 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2019-11-03 22:53:17 +0900 |
commit | f8b3d7d1599ecaa6760d947609f966a7a5b22e2c (patch) | |
tree | e73fa0fbef5b8e745dad33eea707cc9bfdbb2f6d /doc/regexp.rdoc | |
parent | 782d1b8fb0a039cedef9ad9c94f432dad51901e6 (diff) |
[DOC] \s in regexp is not same as in string [ci skip]
Diffstat (limited to 'doc/regexp.rdoc')
-rw-r--r-- | doc/regexp.rdoc | 3 |
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 " 東京都"> |