62,614
社区成员
发帖
与我相关
我的任务
分享
public static void main(String[] args) {
String str = "\"aa\",\"b1212,\"'131b\",\"cdfsafdc\"";
String[] result = str.replaceAll("^\"", "").split("\",\"");
System.out.println(Arrays.deepToString(result));
}
public static void main(String[] args) {
String str = "\"aa\",\"b1212,\"'131b\",\"cdfsafdc\"";
String[] result = str.replaceAll("^\"", "").replaceAll("\"$", "").split("\",\"");
System.out.println(Arrays.deepToString(result));
}