public interface Regexp extends RegexpMatcher
Modifier and Type | Field and Description |
---|---|
static int |
REPLACE_ALL
Replace all occurrences of the regular expression
|
static int |
REPLACE_FIRST
Replace only the first occurrence of the regular expression
|
MATCH_CASE_INSENSITIVE, MATCH_DEFAULT, MATCH_MULTILINE, MATCH_SINGLELINE
Modifier and Type | Method and Description |
---|---|
java.lang.String |
substitute(java.lang.String input,
java.lang.String argument,
int options)
Perform a substitution on the regular expression.
|
getGroups, getGroups, getPattern, matches, matches, setPattern
static final int REPLACE_FIRST
static final int REPLACE_ALL
java.lang.String substitute(java.lang.String input, java.lang.String argument, int options) throws BuildException
input
- The string to substitute onargument
- The string which defines the substitutionoptions
- The list of options for the match and replace. See the
MATCH_ and REPLACE_ constants above.BuildException
- on error