public class Jdk14RegexpRegexp extends Jdk14RegexpMatcher implements Regexp
REPLACE_ALL, REPLACE_FIRST
MATCH_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, setPattern
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGroups, getGroups, getPattern, matches, matches, setPattern
protected 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 Regexp
input
- The string to substitute onargument
- The string which defines the substitutionoptions
- The list of options for the match and replace.BuildException
- on error