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