Class Jdk14RegexpRegexp

java.lang.Object
org.apache.tools.ant.util.regexp.Jdk14RegexpMatcher
org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp
All Implemented Interfaces:
Regexp, RegexpMatcher

public class Jdk14RegexpRegexp
extends Jdk14RegexpMatcher
implements Regexp
Regular expression implementation using the JDK 1.4 regular expression package
  • Constructor Details

  • Method Details

    • getSubsOptions

      protected int getSubsOptions​(int options)
      Convert ant regexp substitution option to jdk1.4 options.
      Parameters:
      options - the ant regexp options
      Returns:
      the jdk14 substitution options
    • substitute

      public java.lang.String substitute​(java.lang.String input, java.lang.String argument, int options) throws BuildException
      Perform a substitution on the regular expression.
      Specified by:
      substitute in 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