org.apache.tools.ant.util.regexp
Class JakartaRegexpRegexp
- Regexp, RegexpMatcher
public class JakartaRegexpRegexp
Regular expression implementation using the Jakarta Regexp package
protected int | getSubsOptions(int options) - Convert ant regexp substitution option to apache regex options.
|
String | substitute(String input, String argument, int options) - Perform a substitution on the regular expression.
|
JakartaRegexpRegexp
public JakartaRegexpRegexp()
Constructor for JakartaRegexpRegexp
getSubsOptions
protected int getSubsOptions(int options)
Convert ant regexp substitution option to apache regex options.
options
- the ant regexp options
- the apache regex substition options
substitute
public String substitute(String input,
String argument,
int options)
throws BuildException
Perform a substitution on the regular expression.
- substitute in interface Regexp
input
- The string to substitute onargument
- The string which defines the substitutionoptions
- The list of options for the match and replace.
- the result of the operation