Class TokenFilter.ReplaceRegex

    • Constructor Detail

      • ReplaceRegex

        public ReplaceRegex()
    • Method Detail

      • setPattern

        public void setPattern​(java.lang.String from)
        the from attribute
        Parameters:
        from - the regex string
      • setReplace

        public void setReplace​(java.lang.String to)
        the to attribute
        Parameters:
        to - the replacement string
      • setFlags

        public void setFlags​(java.lang.String flags)
        Parameters:
        flags - the regex flags
      • filter

        public java.lang.String filter​(java.lang.String line)
        Description copied from interface: TokenFilter.Filter
        filter and/of modify a string
        Parameters:
        line - the string to modify
        Returns:
        the modified string