News

The regex specifies two capturing groups: number 1 is (Java( language)2), which matches Java language language, and number 2 is ( language), which matches a space character followed by language.
The Java Tutorials‘s lesson on regular expressions introduces Java’s support for regular expressions via the java.util.regex package and highlights the two classes Pattern and Matcher.