public class Jdk14RegexpRegexp extends Jdk14RegexpMatcher implements Regexp
REPLACE_ALL, REPLACE_FIRSTMATCH_CASE_INSENSITIVE, MATCH_DEFAULT, MATCH_MULTILINE, MATCH_SINGLELINE| Constructor and Description |
|---|
Jdk14RegexpRegexp()
Constructor for Jdk14RegexpRegexp
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getSubsOptions(int options)
Convert ant regexp substitution option to jdk1.4 options.
|
java.lang.String |
substitute(java.lang.String input,
java.lang.String argument,
int options)
Perform a substitution on the regular expression.
|
getCompiledPattern, getCompilerOptions, getGroups, getGroups, getPattern, matches, matches, setPatternclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGroups, getGroups, getPattern, matches, matches, setPatternprotected int getSubsOptions(int options)
options - the ant regexp optionspublic java.lang.String substitute(java.lang.String input,
java.lang.String argument,
int options)
throws BuildException
substitute in interface Regexpinput - The string to substitute onargument - The string which defines the substitutionoptions - The list of options for the match and replace.BuildException - on error