String a = "[1,2,3]"; String b = a.replaceAll("[\\[\\]]",""); System.out.println(b);// b=1,3原文链接:https://www.f2er.com/regex/359080.html
String a = "[1,2,3]"; String b = a.replaceAll("[\\[\\]]",""); System.out.println(b);// b=1,3原文链接:https://www.f2er.com/regex/359080.html