Package org.apache.tools.ant.util.regexp
Class JakartaRegexpRegexp
java.lang.Object
org.apache.tools.ant.util.regexp.JakartaRegexpMatcher
org.apache.tools.ant.util.regexp.JakartaRegexpRegexp
- All Implemented Interfaces:
- Regexp,- RegexpMatcher
Regular expression implementation using the Jakarta Regexp package
- 
Field SummaryFields inherited from interface org.apache.tools.ant.util.regexp.RegexpREPLACE_ALL, REPLACE_FIRSTFields inherited from interface org.apache.tools.ant.util.regexp.RegexpMatcherMATCH_CASE_INSENSITIVE, MATCH_DEFAULT, MATCH_MULTILINE, MATCH_SINGLELINE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected intgetSubsOptions(int options) Convert ant regexp substitution option to apache regex options.substitute(String input, String argument, int options) Perform a substitution on the regular expression.Methods inherited from class org.apache.tools.ant.util.regexp.JakartaRegexpMatchergetCompiledPattern, getCompilerOptions, getGroups, getGroups, getPattern, matches, matches, setPatternMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.tools.ant.util.regexp.RegexpMatchergetGroups, getGroups, getPattern, matches, matches, setPattern
- 
Constructor Details- 
JakartaRegexpRegexppublic JakartaRegexpRegexp()
 
- 
- 
Method Details- 
getSubsOptionsprotected int getSubsOptions(int options) Convert ant regexp substitution option to apache regex options.- Parameters:
- options- the ant regexp options
- Returns:
- the apache regex substitution options
 
- 
substitutePerform a substitution on the regular expression.- Specified by:
- substitutein interface- Regexp
- 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
 
 
-