Class TokenFilter.ContainsRegex

    • Constructor Detail

      • ContainsRegex

        public ContainsRegex()
    • Method Detail

      • setPattern

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

        public void setReplace​(java.lang.String to)
        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 string)
        apply regex and substitution on a string
        Parameters:
        string - the string to apply filter on
        Returns:
        the filtered string