I\'m trying to convert the String \\something\\ into the String \\\\something\\\\ using replaceAll, but I k
String
\\something\\
\\\\something\\\\
replaceAll
To avoid this sort of trouble, you can use replace (which takes a plain string) instead of replaceAll (which takes a regular expression). You will still need to escape backslashes, but not in the wild ways required with regular expressions.
replace