I'm trying to convert "\something\" into "\\something\\" using replaceAll, but I keep getting all kinds of errors. I thought this was the solution:
theString.replaceAll("\\", "\\\\");
But this gives: Exception in thread "main" java.util.regex.PatternSyntaxException: Unexpected internal error near index 1