String str="fdsfds\"{fdsfd}\"fdsfds";
str = str.replaceAll("\"\\{", "{").replaceAll("\\}\"", "}");
System.out.println(str);
java 替换字符
最新推荐文章于 2024-07-03 14:01:52 发布
String str="fdsfds\"{fdsfd}\"fdsfds";
str = str.replaceAll("\"\\{", "{").replaceAll("\\}\"", "}");
System.out.println(str);