String ids ="[1233,23123]";
String s = ids.replace("[", "");//不需要转义
String[] ArrIds = ids.replaceAll("\\[", "").replaceAll("\\]", "").split(",");//需要转义
replace 和replaceAll 的坑
猜你喜欢
转载自blog.csdn.net/forever_insist/article/details/81095059
今日推荐
周排行