diff --git a/src/share/classes/java/util/regex/Pattern.java b/src/share/classes/java/util/regex/Pattern.java index b02d68b73e45595dc708149075d7f1fa41d7ea29..fa302cfbab7268c1b9c5c42a043675257f952503 100644 --- a/src/share/classes/java/util/regex/Pattern.java +++ b/src/share/classes/java/util/regex/Pattern.java @@ -667,8 +667,30 @@ import java.util.Arrays; *
Perl constructs not supported by this class:
* *Predefined character classes (Unicode character) + *
\h A horizontal whitespace + *
\H A non horizontal whitespace + *
\v A vertical whitespace + *
\V A non vertical whitespace + *
\R Any Unicode linebreak sequence + * \u005cu000D\u005cu000A|[\u005cu000A\u005cu000B\u005cu000C\u005cu000D\u005cu0085\u005cu2028\u005cu2029] + *
\X Match Unicode + * + * extended grapheme cluster + *
The backreference constructs, \g{n} for + * the nthcapturing group and + * \g{name} for + * named-capturing group. + *
The conditional constructs (?{X}) and + *
The named character construct, \N{name} + * for a Unicode character by its name. + *
The conditional constructs + * (?(condition)X) and * (?(condition)X|Y), *
Possessive quantifiers, which greedily match as much as they can - * and do not back off, even when doing so would allow the overall match to - * succeed.
Character-class union and intersection as described * above.
Perl is forgiving about malformed matching constructs, as in the - * expression *a, as well as dangling brackets, as in the - * expression abc], and treats them as literals. This - * class also accepts dangling brackets but is strict about dangling - * metacharacters like +, ? and *, and will throw a - * {@link PatternSyntaxException} if it encounters them.