This is a utility class implementing some common regular expression-based operations, using the java.util.regex classes. The various operations are briefly described here; see the individual methods for full details.
The {@link #substitute} method implements Perl-like regular expressionsubstitution. It takes an edit string representing the substitution, and a string to be edited. It returns the possibly edited string. The substitution syntax is similar to Perl:
s/regex/replacement/[g][i][m][o][x]
The regular expressions compiled once, and the compiled versions are cached in an internal LRU buffer. The buffer's size is fixed at the time of instantiation.
See the documentation for the {@link #substitute} method for fulldetails.
|
|