Regular Expression
String
The String class contains support for regular expressions:
The following methods support regular expressions:
matches
split
replaceFirst
replaceAll
Regex Model
The JDK includes classes for regular expressions. These are the Pattern and the Matcher.
The Pattern contains the regular expression, while the Matcher is used to apply said regular expression.
Now you can work with the matcher.
Last updated
Was this helpful?