From f8b3d7d1599ecaa6760d947609f966a7a5b22e2c Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 3 Nov 2019 22:53:17 +0900 Subject: [DOC] \s in regexp is not same as in string [ci skip] --- doc/regexp.rdoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc') 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: \\\\. /a\\\\b/.match('a\\\\b') #=> # Patterns behave like double-quoted strings so can contain the same -backslash escapes. +backslash escapes (the meaning of \s is different a little however, +see bellow[#label-Character+Classes]). /\s\u{6771 4eac 90fd}/.match("Go to 東京都") #=> # -- cgit v1.2.3