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 |
|---|---|
String |
substitute(String input,
String argument,
int options)
Perform a substitution on the regular expression.
|
getGroups, getGroups, getPattern, matches, matches, setPatternstatic final int REPLACE_ALL
static final int REPLACE_FIRST
String substitute(String input, 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