日期:2014-05-17 浏览次数:21083 次
String json = "{\"name\":\"value\"}";
String t = json.replaceAll("\"(\\w+)\"(\\s*:\\s*)", "$1$2");
System.out.println(t);
String json = "{\"name\":\"value\"}";
String t = json.replaceAll("(:\\s*)\"(\\w+?)\"", "$1$2");
System.out.println(t);
String json = "{\"name\":\"value\"}";
String t = json.replaceAll("\"(\\w+)\"", "$1");
System.out.println(t);