replace "\" with "" in java

Viewed 10595

my question is quite simple:

how to replace "\" with "" ???

I tried this:

str.replaceAll("\\", "");

but I get en exception

08-04 01:14:50.146: I/LOG(7091): java.util.regex.PatternSyntaxException: Syntax error U_REGEX_BAD_ESCAPE_SEQUENCE near index 1:
3 Answers
Related