org.apache.tools.ant.util.regexp

Class JakartaRegexpRegexp

public class JakartaRegexpRegexp extends JakartaRegexpMatcher implements Regexp

Regular expression implementation using the Jakarta Regexp package
Constructor Summary
JakartaRegexpRegexp()
Constructor for JakartaRegexpRegexp
Method Summary
protected intgetSubsOptions(int options)
Convert ant regexp substitution option to apache regex options.
Stringsubstitute(String input, String argument, int options)
Perform a substitution on the regular expression.

Constructor Detail

JakartaRegexpRegexp

public JakartaRegexpRegexp()
Constructor for JakartaRegexpRegexp

Method Detail

getSubsOptions

protected int getSubsOptions(int options)
Convert ant regexp substitution option to apache regex options.

Parameters: options the ant regexp options

Returns: the apache regex substition options

substitute

public 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.

Returns: the result of the operation

Throws: BuildException on error

Copyright