When I use
String replaceAll() method, it removes all the backslashes in my replacement string. The matcher class in jdk explicity removes all the backslashes. Is there any way to avoid this?
when I do str.replaceAll("xyz", "c:\\temp\\xyz"); it replaces xyz with ctempxyz instead of c:\temp\xyz.
Does anyone know how to replace the string without replacing slashes? Any help is greatly appreciated. Thanks.
[ February 15, 2008: Message edited by: Raja Kannappan ]