Interface Regexp

    • Field Detail

      • REPLACE_FIRST

        static final int REPLACE_FIRST
        Replace only the first occurrence of the regular expression
        See Also:
        Constant Field Values
      • REPLACE_ALL

        static final int REPLACE_ALL
        Replace all occurrences of the regular expression
        See Also:
        Constant Field Values
    • Method Detail

      • substitute

        java.lang.String substitute​(java.lang.String input,
                                    java.lang.String argument,
                                    int options)
                             throws BuildException
        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. See the MATCH_ and REPLACE_ constants above.
        Returns:
        the result of the operation
        Throws:
        BuildException - on error