public class JakartaOroRegexp extends JakartaOroMatcher implements Regexp
compiler, matcher
REPLACE_ALL, REPLACE_FIRST
MATCH_CASE_INSENSITIVE, MATCH_DEFAULT, MATCH_MULTILINE, MATCH_SINGLELINE
Constructor and Description |
---|
JakartaOroRegexp()
Constructor for JakartaOroRegexp
|
Modifier and Type | Method and Description |
---|---|
protected int |
getSubsOptions(int options)
Convert ant regexp substitution option to oro 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 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 errorprotected int getSubsOptions(int options)
options
- the ant regexp options