第1个回答 2011-11-01
replaceAll("[\\(\\)]","?")
第2个回答 2011-11-01
参考:
String str = "(nihao),(henhao),(nichilema?),(chiguole)";
String str2 = str.replaceAll("\\(|\\)", "~");
System.out.println(str2);
第3个回答 2011-11-01
String s = "(1()1(1()1(1(1";
System.err.println(s.replace("()", ""));
第4个回答 2011-11-01
String a="(1,2,3)";
a=a.replaceAll("[(,)]","");
System.out.println(a);