String str="\"abc defg\""; /**去除所有特殊字符*/ String str0=str.replaceAll("\"",""); String str1=str0.replace(" ","")