public abstract class RegexUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
escapeRegexSpecials(java.lang.String stringToEscape)
Escapes (precedes with \) any characters in the parameter in the set
|
public static java.lang.String escapeRegexSpecials(java.lang.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.