July 2007
Intermediate to advanced
128 pages
2h 39m
English
java.lang.String
Methods for pattern matching.
boolean matches(Stringregex)Return true if regex matches the entire String.
String[ ] split(Stringregex)Return an array of the substrings surrounding matches of regex.
String [ ] split(Stringregex, intlimit)Return an array of the substrings surrounding the first limit-1 matches of regex.
String replaceFirst(Stringregex, Stringreplacement)Replace the substring matched by regex with replacement.
String replaceAll(Stringregex, Stringreplacement)Replace all substrings matched by regex with replacement.