org.apache.tools.ant.util.regexp
public interface Regexp extends RegexpMatcher
Field Summary | |
---|---|
int | REPLACE_ALL
Replace all occurrences of the regular expression |
int | REPLACE_FIRST
Replace only the first occurrence of the regular expression |
Method Summary | |
---|---|
String | substitute(String input, String argument, int options)
Perform a substitution on the regular expression. |
Parameters: input The string to substitute on argument The string which defines the substitution options The list of options for the match and replace. See the MATCH_ and REPLACE_ constants above.
Returns: the result of the operation
Throws: BuildException on error