如何从具有多种特殊字符的字符串中删除特定的特殊字符
答
String withQuotes = "I am a \" quote";
String withoutQuotes = withQuotes.replace("\"","");
答
String s = "Hello \"there\"";
s = s.replaceAll("\"", "");
+0
谢谢..它工作正常。 – Tanu 2010-11-25 10:58:31
,特殊字符是不正常的字符不同。 – lijie 2010-11-25 07:46:37