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.
String jarPath = "\\xyz\abc\wtf\lame";
jarPath = jarPath.replaceAll("\\xyz\abc", "z:");
What should I do to solve this issue.
Thank you.
See Question&Answers more detail:os