How do I replace a single \'\\\' with \'\\\\\'? When I run replaceAll() then I get this error message.
\'\\\'
\'\\\\\'
replaceAll()
Exception in t
\ is also a special character in regexp. This is why you should do something like this:
\
str = str.replaceAll("\\\\", "\\\\\\\\");