public final class RegexUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Pattern[] |
exprsToPatterns(String[] exprs)
Converts each String to a Pattern using wildcardToJavaRegex
|
static Pattern[] |
exprsToPatterns(String[] exprs,
int flags)
Converts each String to a Pattern using wildcardToJavaRegex, passing the flags.
|
static String |
wildcardToJavaRegex(String input)
Supports the single wildcard "*".
|
public static Pattern[] exprsToPatterns(String[] exprs)
exprs - String[] of expressionspublic static Pattern[] exprsToPatterns(String[] exprs, int flags)
exprs - String[] of expressionsflags - flags to pass to Pattern.compileCopyright © 2019. All rights reserved.