Package org.apache.tools.ant.util.regexp
Interface Regexp
- All Superinterfaces:
- RegexpMatcher
- All Known Implementing Classes:
- JakartaOroRegexp,- JakartaRegexpRegexp,- Jdk14RegexpRegexp
Interface which represents a regular expression, and the operations
 that can be performed on it.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intReplace all occurrences of the regular expressionstatic final intReplace only the first occurrence of the regular expressionFields inherited from interface org.apache.tools.ant.util.regexp.RegexpMatcherMATCH_CASE_INSENSITIVE, MATCH_DEFAULT, MATCH_MULTILINE, MATCH_SINGLELINE
- 
Method SummaryModifier and TypeMethodDescriptionsubstitute(String input, String argument, int options) Perform a substitution on the regular expression.Methods inherited from interface org.apache.tools.ant.util.regexp.RegexpMatchergetGroups, getGroups, getPattern, matches, matches, setPattern
- 
Field Details- 
REPLACE_FIRSTstatic final int REPLACE_FIRSTReplace only the first occurrence of the regular expression- See Also:
 
- 
REPLACE_ALLstatic final int REPLACE_ALLReplace all occurrences of the regular expression- See Also:
 
 
- 
- 
Method Details- 
substitutePerform 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. See the MATCH_ and REPLACE_ constants above.
- Returns:
- the result of the operation
- Throws:
- BuildException- on error
 
 
-