I\'m trying to replace the beginning of a string with backslashes to something else. For some weird reason the replaceAll function doesn\'t like backslashes.
Str
You can use replace() method also which will remove \\\\xyz\\abc from the String
replace()
\\\\xyz\\abc
String
String jarPath = "\\\\xyz\\abc\\wtf\\lame\\"; jarPath = jarPath.replace("\\\\xyz\\abc", "z:");