Class StringMatcher.RegexMatcher

  • Enclosing class:
    StringMatcher

    public static final class StringMatcher.RegexMatcher
    extends StringMatcher
    A StringMatcher which matches a full string value against a given regular expression.
    Note: in order to match, the regular expression must match the full value, rather than just match a substring.
    • Constructor Detail

      • RegexMatcher

        public RegexMatcher​(@Nonnull
                            java.lang.String pattern)
                     throws java.util.regex.PatternSyntaxException
        Parameters:
        pattern - The regular expression to match.
        Throws:
        java.util.regex.PatternSyntaxException