Spring Integration

org.springframework.integration.ip.util
Class RegexUtils

java.lang.Object
  extended by org.springframework.integration.ip.util.RegexUtils

public abstract class RegexUtils
extends java.lang.Object

Regular Expression Utilities.

Since:
2.0
Author:
Gary Russell

Method Summary
static java.lang.String escapeRegexSpecials(java.lang.String stringToEscape)
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

escapeRegexSpecials

public static java.lang.String escapeRegexSpecials(java.lang.String stringToEscape)
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.

Spring Integration