String
for the specified String
. This method produces a String
that will work as a literal replacement s
in the appendReplacement
method of the {@link Matcher} class.The String
produced will match the sequence of characters in s
treated as a literal sequence. Slashes ('\') and dollar signs ('$') will be given no special meaning.
@param s The string to be literalized
@return A literal string replacement
@since 1.5
|
|