Requirement: get 1,2,3 from the string ["1","2","3"]
Method: think of many methods, you can replace it step by step. Here is a simpler method
String str = "[\"1\",\"2\",\"3\"]";
String reg = "[\\["\\]]";
str = str.replaceAll(reg,"");
result:
str=“1,2,3”;