I have a java string with "\\" character (extra '\' for escaping). I want to replace all the occurence of "\\" to "\". Any idea how it can be done? str.replaceAll("\\", "\") does not work. The problem is in replacing the \ character.
I have a java string with \\ character (extra ‘\’ for escaping). I want
Share
“\” means \ cause of \ is an escape symbol
heh, even stackoverflow parser converts \ \ (without spaces) to single \ :-))