public class RegexUtils
extends java.lang.Object
| Constructor and Description |
|---|
RegexUtils()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
quote(java.lang.String s)
Deprecated.
use java.util.regex.Pattern#quote(String) instead
|
static java.lang.String |
quoteReplacement(java.lang.String str)
Deprecated.
Replacement for Matcher.quoteReplacement from JDK 1.5
|
public static java.lang.String quote(java.lang.String s)
String for the specified
String. Used to escape strings that may contain
unintentional characters with special significance to replaceAll() etc.
GROOVY-3287 : This is used instead of the default Retrotranslator
backport implementation. See backport attribute in config/build-retro.xml.s - the original stringpublic static java.lang.String quoteReplacement(java.lang.String str)