org.apache.tools.ant.util.regexp
Interface Regexp
- RegexpMatcher
- JakartaOroRegexp, JakartaRegexpRegexp, Jdk14RegexpRegexp
Interface which represents a regular expression, and the operations
that can be performed on it.
static int | REPLACE_ALL - Replace all occurances of the regular expression
|
static int | REPLACE_FIRST - Replace only the first occurance of the regular expression
|
String | substitute(String input, String argument, int options) - Perform a substitution on the regular expression.
|
REPLACE_ALL
public static final int REPLACE_ALL
Replace all occurances of the regular expression
REPLACE_FIRST
public static final int REPLACE_FIRST
Replace only the first occurance of the regular expression
substitute
public String substitute(String input,
String argument,
int options)
throws BuildException
Perform a substitution on the regular expression.
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.
- the result of the operation
Copyright B) 2000-2006 Apache Software Foundation. All Rights Reserved.