public final class PatternMatchUtils extends Object
PatternMatchUtils
.PatternMatchUtils
Modifier and Type | Method and Description |
---|---|
static Boolean |
smartMatch(String str,
String... patterns)
Pattern match against the supplied patterns; also supports negated ('!')
patterns.
|
static Boolean |
smartMatchIgnoreCase(String str,
String... patterns)
Pattern match against the supplied patterns ignoring case; also supports negated ('!')
patterns.
|
public static Boolean smartMatchIgnoreCase(String str, 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 Boolean smartMatch(String str, 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)