From 7b2cd548aa52fa434006dccff62a6050ed5fd881 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 3 Nov 2019 23:18:01 +0900 Subject: [DOC] mentioned `\R` [ci skip] --- doc/regexp.rdoc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc') diff --git a/doc/regexp.rdoc b/doc/regexp.rdoc index c14a145831..ccf82538b7 100644 --- a/doc/regexp.rdoc +++ b/doc/regexp.rdoc @@ -132,6 +132,9 @@ The following metacharacters also behave like character classes: * /\H/ - A non-hexdigit character ([^0-9a-fA-F]) * /\s/ - A whitespace character: /[ \t\r\n\f\v]/ * /\S/ - A non-whitespace character: /[^ \t\r\n\f\v]/ +* /\R/ - A linebreak: \n, \v, \f, \r + \u0085 (NEXT LINE), \u2028 (LINE SEPARATOR), \u2029 (PARAGRAPH SEPARATOR) + or \r\n. POSIX bracket expressions are also similar to character classes. They provide a portable alternative to the above, with the added benefit -- cgit v1.2.3