--- old/src/java.base/share/classes/java/util/regex/Pattern.java 2017-05-03 14:00:51.489616011 -0700 +++ new/src/java.base/share/classes/java/util/regex/Pattern.java 2017-05-03 14:00:51.357610301 -0700 @@ -79,13 +79,15 @@ * *

Summary of regular-expression constructs

* - * - * + *
+ * + * * * * * + * + * * * * @@ -383,6 +385,7 @@ * * * + * *
Regular expression constructs, and what they match
ConstructMatches
 
Characters
{@code (?>}X{@code )}X, as an independent, non-capturing group
* *
@@ -429,8 +432,9 @@ *

The precedence of character-class operators is as follows, from * highest to lowest: * - *

+ *
+ * + * * * * @@ -446,6 +450,7 @@ * * * + * *
Precedence of character class operators.
1    Literal escape    {@code \x}
5    Intersection{@code [a-z&&[aeiou]]}
* *

Note that a different set of metacharacters are in effect inside @@ -496,7 +501,9 @@ * left to right. In the expression {@code ((A)(B(C)))}, for example, there * are four such groups:

* - *
+ *
+ * + * * * * @@ -505,6 +512,7 @@ * * * + * *
Capturing group numberings
1    {@code ((A)(B(C)))}
2    {@code (B(C))}
4    {@code (C)}
* *

Group zero always stands for the entire expression. @@ -641,12 +649,15 @@ * of Unicode Regular Expression * , when {@link #UNICODE_CHARACTER_CLASS} flag is specified. * - * + *
+ * + * * * * - * + * + * + * * * * @@ -685,6 +696,7 @@ * * * + * *
predefined and posix character classes in Unicode mode
ClassesMatches
{@code \p{Lower}}A lowercase character:{@code \p{IsLowercase}}
{@code \p{Upper}}A word character: {@code [\p{Alpha}\p{gc=Mn}\p{gc=Me}\p{gc=Mc}\p{Digit}\p{gc=Pc}\p{IsJoin_Control}]}
{@code \W}A non-word character: {@code [^\w]}
*

* @@ -1207,11 +1219,14 @@ *

The input {@code "boo:and:foo"}, for example, yields the following * results with these parameters: * - *

+ *
+ * + * * * * + * + * * * * @@ -1230,6 +1245,7 @@ * * * + * *
Split examples showing regex, limit, and result
Regex    Limit    Result    
:2{@code { "boo", "and:foo" }}
o0{@code { "b", "", ":and:f" }}
* * @param input @@ -1294,14 +1310,18 @@ *

The input {@code "boo:and:foo"}, for example, yields the following * results with these expressions: * - *

+ *
+ * + * * * + * + * * * * * + * *
Split examples showing regex and result
Regex    Result
:{@code { "boo", "and", "foo" }}
o{@code { "b", "", ":and:f" }}
* *