public final class FindUtils
extends java.lang.Object
| Constructor and Description |
|---|
FindUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.regex.Pattern |
getRegExPattern(FindCriteria criteria)
Validate the given string to see if it is a valid regex pattern.
|
static java.lang.String |
substituteSpecial(java.lang.String replaceText)
Take a string and return a copy with special characters replaced.
|
public static java.util.regex.Pattern getRegExPattern(FindCriteria criteria) throws java.util.regex.PatternSyntaxException
pattern - the pattern to validate.matchCase - if the pattern is case insensitivejava.util.regex.PatternSyntaxExceptionpublic static java.lang.String substituteSpecial(java.lang.String replaceText)
replaceText -