mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[DOC] Fix typo and language
This commit is contained in:
parent
8c017824c8
commit
3679023df8
1 changed files with 3 additions and 3 deletions
|
@ -68,9 +68,9 @@ a backslash literally, backslash-escape it: <tt>\\\\</tt>.
|
|||
/1 \+ 2 = 3\?/.match('Does 1 + 2 = 3?') #=> #<MatchData "1 + 2 = 3?">
|
||||
/a\\\\b/.match('a\\\\b') #=> #<MatchData "a\\b">
|
||||
|
||||
Patterns behave like double-quoted strings so can contain the same
|
||||
backslash escapes (the meaning of <tt>\s</tt> is different a little however,
|
||||
see bellow[#label-Character+Classes]).
|
||||
Patterns behave like double-quoted strings and can contain the same
|
||||
backslash escapes (the meaning of <tt>\s</tt> is different, however,
|
||||
see below[#label-Character+Classes]).
|
||||
|
||||
/\s\u{6771 4eac 90fd}/.match("Go to 東京都")
|
||||
#=> #<MatchData " 東京都">
|
||||
|
|
Loading…
Reference in a new issue