正则匹配 【】用法

String s1= "[23, 56 ,21,22, 9,?\\/]";
String s2 = s1.replaceAll("[\\[\\]\\s?/\\\\]", "");
System.out.println(s2);//23,56,21,22,9,

posted @ 2016-01-13 14:36  Struts-pring  阅读(177)  评论(0编辑  收藏  举报