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]
# 1
string.replaceAll("\\\\", "");
itchyscratchya at 2007-7-14 22:58:14 > top of Java-index,Desktop,Core GUI APIs...
# 2
(that's four back slashes)
itchyscratchya at 2007-7-14 22:58:15 > top of Java-index,Desktop,Core GUI APIs...
# 3
OK fine It worked . Thanks!!
haishaia at 2007-7-14 22:58:15 > top of Java-index,Desktop,Core GUI APIs...
# 4
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 "\\\\"
itchyscratchya at 2007-7-14 22:58:15 > top of Java-index,Desktop,Core GUI APIs...