public final class PatternMatchUtils
extends java.lang.Object
PatternMatchUtils.PatternMatchUtils| Modifier and Type | Method and Description |
|---|---|
static java.lang.Boolean |
smartMatch(java.lang.String str,
java.lang.String... patterns)
Pattern match against the supplied patterns; also supports negated ('!')
patterns.
|
static java.lang.Boolean |
smartMatchIgnoreCase(java.lang.String str,
java.lang.String... patterns)
Pattern match against the supplied patterns ignoring case; also supports negated ('!')
patterns.
|
public static java.lang.Boolean smartMatchIgnoreCase(java.lang.String str,
java.lang.String... patterns)
! symbol,
you have to escape it prepending with the \ symbol in the pattern definition.str - the string to match.patterns - the patterns.PatternMatchUtils.simpleMatch(String[], String)public static java.lang.Boolean smartMatch(java.lang.String str,
java.lang.String... patterns)
! symbol,
you have to escape it prepending with the \ symbol in the pattern definition.str - the string to match.patterns - the patterns.PatternMatchUtils.simpleMatch(String[], String)