yang3114 发表于 2019-2-23 10:05:33

[已解决]求个正则!

本帖最后由 yang3114 于 2019-2-23 10:29 编辑

var returnInfo = {"cip":"118.120.118.181","cname":"\u4e2d\u56fd,\u56db\u5ddd,\u5357\u5145,\u7535\u4fe1,30.795281,106.082974,Asia\/Chongqing,UTC+8,511300,86,CN,AP","country":"\u4e2d\u56fd","province":"\u56db\u5ddd","city":"\u5357\u5145","isp":"\u7535\u4fe1"}

我想获取这段代码中的:\u5357\u5145,这段字符。

zghwelcome 发表于 2019-2-23 10:13:53

(?i)"city":"([^"]+)

yang3114 发表于 2019-2-23 10:28:55

谢谢楼上的。{:face (316):}
页: [1]
查看完整版本: [已解决]求个正则!