public final class RegexUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
escapeRegexSpecials(String stringToEscape)
Escapes (precedes with \) any characters in the parameter in the set
|
public static String escapeRegexSpecials(String stringToEscape)
.$[]^*+{}()\?|
Used to escape a string that is used as a regular expression pattern, to remove the special meaning of these characters.
stringToEscape
- The string to escape.