找回密码
 加入
搜索
查看: 2773|回复: 5

[AU3基础] 求正则[已解决]

  [复制链接]
发表于 2015-10-19 10:38:57 | 显示全部楼层 |阅读模式
本帖最后由 wangms 于 2015-10-20 09:49 编辑

{"trans_result":{"from":"zh","to":"en","domain":"all","type":2,"status":0,"data":[{"dst":"I love you, I love you such as an article, similar such \"resting J. Ngy Houtt ng; bed rest w o Chu, ng Xi Du. To to the inside of the phonetic alphabet and English letters are removed, remaining such\" retreats; bed rest. \"I want to StringRegExpReplace () function, but can not find can match the phonetic alphabet (tonal) expression, help!","src":"i love you\uff0cI LOVE YOU \u6bd4\u5982\u6709\u4e00\u7bc7\u6587\u7ae0\uff0c\u7c7b\u4f3c\u8fd9\u6837\u201c\u9759\u517b j\u00ecngy\u01ceng\uff1b\u5367\u5e8a\u4f11\u606f w\u00f2chu\u00e1ng xi\u016bxi. \u8981\u628a\u91cc\u9762\u7684\u62fc\u97f3\u5b57\u6bcd\u548c\u82f1\u6587\u5b57\u6bcd\u90fd\u53bb\u6389\uff0c\u5269\u4e0b\u8fd9\u6837\u7684\u201c\u9759\u517b\uff1b\u5367\u5e8a\u4f11\u606f . \u201d\u6211\u60f3\u7528StringRegExpReplace ()\u51fd\u6570\uff0c\u4f46\u662f\u627e\u4e0d\u5230\u53ef\u4ee5\u5339\u914d\u62fc\u97f3\u5b57\u6bcd\uff08\u5e26\u58f0\u8c03\uff09\u7684\u8868\u8fbe\u5f0f\uff0c\u6c42\u52a9\uff01","relation":[],"result":[[0,"I love you, I love you such as an article, similar such \"resting J. Ngy Houtt ng; bed rest w o Chu, ng Xi Du. To to the inside of the phonetic alphabet and English letters are removed, remaining such\" retreats; bed rest. \"I want to StringRegExpReplace () function, but can not find can match the phonetic alphabet (tonal) expression, help!",["0|332"],[],["0|332"],["0|339"]]]}]},"dict_result":{"baike_means":[],"edict":"","zdict":""},"liju_result":[]}



求提取上面阴影部分的正则,谢谢先!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
 楼主| 发表于 2015-10-19 10:54:37 | 显示全部楼层
找到一个:  (?<="dst":").*(?=","src")  
不知还有更好的不?
发表于 2015-10-19 11:26:52 | 显示全部楼层
那个可以,也可以试试
(?<=dst":")(.+?[^\\])"
 楼主| 发表于 2015-10-19 14:06:25 | 显示全部楼层
回复 3# afan


    谢谢A大一如既往的帮助!!
发表于 2015-10-19 15:29:10 | 显示全部楼层
dst":"(.*?)",
 楼主| 发表于 2015-10-20 09:48:58 | 显示全部楼层
回复 5# haijie1223


    谢谢H大,3Q!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-11-22 11:13 , Processed in 0.089587 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表