I have a problem with strings saved in a database, like this for example: \"311\\315_316\\336_337\". They have only one backslash and this is a problem in java. Wh
\"311\\315_316\\336_337\"
in java, backslash \ has a special meaning. in order to remove it, escape it with another backslash \\
\
\\
try this:
s.replaceAll("\\", "\\\\");