62,614
社区成员
发帖
与我相关
我的任务
分享
public static void main(String[] args) throws Exception {
String str = "{\"username\":\"zs\",\"password\":\"123123\",\"phone\":\"13612345678\"}";
Matcher m =Pattern.compile("\"(.*?)\":\"(.*?)\"").matcher(str);
while(m.find()){
System.out.println(m.group(1)+"="+m.group(2));
}
}