String str="fdsfds\"{fdsfd}\"fdsfds";
str = str.replaceAll("\"\\{", "{").replaceAll("\\}\"", "}");
System.out.println(str);
java 替换字符
最新推荐文章于 2024-05-04 13:00:00 发布
String str="fdsfds\"{fdsfd}\"fdsfds";
str = str.replaceAll("\"\\{", "{").replaceAll("\\}\"", "}");
System.out.println(str);