FileDocCategorySizeDatePackage
Regexp.javaAPI DocApache Ant 1.701820Wed Dec 13 06:16:22 GMT 2006org.apache.tools.ant.util.regexp

Regexp

public interface Regexp implements RegexpMatcher
Interface which represents a regular expression, and the operations that can be performed on it.

Fields Summary
int
REPLACE_FIRST
Replace only the first occurrence of the regular expression
int
REPLACE_ALL
Replace all occurrences of the regular expression
Constructors Summary
Methods Summary
public java.lang.Stringsubstitute(java.lang.String input, java.lang.String argument, int options)
Perform a substitution on the regular expression.

param
input The string to substitute on
param
argument The string which defines the substitution
param
options The list of options for the match and replace. See the MATCH_ and REPLACE_ constants above.
return
the result of the operation
throws
BuildException on error