Replace '\' in a given String by empty String
I want to replace the character \ in the input string with an space or empty string;I tried with replaceAll() method . But it didnt work. Please help me in finding a solution. Thanks in advance
[207 byte] By [
haishaia] at [2007-10-3 4:53:23]

The reason is that the first parameter is a regex. A backslash in regex is escaped, ie "\\" ...so when you define that in a string you need to escape each of the backslashes again, making it "\\\\"