This commit is contained in:
Marcus Stollsteimer 2019-12-24 16:57:30 +01:00
Родитель 8c017824c8
Коммит 3679023df8
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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 " 東京都">