public class JakartaRegexpRegexp extends JakartaRegexpMatcher implements Regexp
REPLACE_ALL, REPLACE_FIRST
MATCH_CASE_INSENSITIVE, MATCH_DEFAULT, MATCH_MULTILINE, MATCH_SINGLELINE
Constructor and Description |
---|
JakartaRegexpRegexp()
Constructor for JakartaRegexpRegexp
|
Modifier and Type | Method and Description |
---|---|
protected int |
getSubsOptions(int options)
Convert ant regexp substitution option to apache regex 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
public JakartaRegexpRegexp()
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