Class RegexUtils
java.lang.Object
org.springframework.integration.ip.util.RegexUtils
public final class RegexUtils extends Object
Regular Expression Utilities.
- Since:
- 2.0
- Author:
- Gary Russell, Artem Bilan
-
Method Summary
Modifier and Type Method Description static String
escapeRegexSpecials(String stringToEscape)
Escapes (precedes with \) any characters in the parameter in the set
-
Method Details
-
escapeRegexSpecials
Escapes (precedes with \) any characters in the parameter in the set.$[]^*+{}()\?|
Used to escape a string that is used as a regular expression pattern, to remove the special meaning of these characters.
- Parameters:
stringToEscape
- The string to escape.- Returns:
- The escaped string.
-