JDK-7014640 : To add a metachar \R for line ending and character classes for vertical/horizontal ws \v \V \h \H
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util.regex
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-01-25
  • Updated: 2017-05-16
  • Resolved: 2012-05-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8 b40Fixed
Related Reports
Relates :  
Description
(1) The second strong recommendation in tr18 is from its section
1.6 Line Boundaries, where it reads:

    It is strongly recommended that there be a regular expression
    meta-character, such as "\R", for matching all line ending
    characters and sequences listed above (e.g. in #1). It would
    thus be shorthand for:

    ( \u000D\u000A | [\u000A\u000B\u000C\u000D\u0085\u2028\u2029] )

(2) Perl has 4 predefined character classes \h \H \v \V for vertical and horizontal whitespace.

\h matches any character considered horizontal whitespace; this includes the space and tab characters and several others listed in the table below.
\H matches any character not considered horizontal whitespace.
\v matches any character considered vertical whitespace; this includes the carriage return and line feed characters (newline) plus several other characters, all listed in the table below.
\V matches any character not considered vertical whitespace.

Comments
EVALUATION for 8
16-08-2011