public final class PatternUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
PREFIX_REGEX_PATTERN |
| Modifier and Type | Method and Description |
|---|---|
static String |
escapeRegex(String wildcard) |
static boolean |
usesWildCard(String value)
Returns
true if the parsed value contains an '?' |
static String |
value2Regex(String value) |
static String |
wildcardToRegex(String wildcard,
boolean strict)
Converts a Wildcard search string to REGEX.
|
public static final Pattern PREFIX_REGEX_PATTERN
public static String wildcardToRegex(String wildcard, boolean strict)
wildcard - the wildcard patternstrict - if true than the REGEX pattern searches
whole words.public static boolean usesWildCard(String value)
true if the parsed value contains an '?' or '*'value - the value to checktrue if the parsed value contains an '?' or '*'Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.