求正则[已解决]
本帖最后由 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|332"],["0|339"]]]}]},"dict_result":{"baike_means":[],"edict":"","zdict":""},"liju_result":[]}
求提取上面阴影部分的正则,谢谢先! 找到一个:(?<="dst":").*(?=","src")
不知还有更好的不? 那个可以,也可以试试(?<=dst":")(.+?[^\\])" 回复 3# afan
谢谢A大一如既往的帮助!! dst":"(.*?)", 回复 5# haijie1223
谢谢H大,3Q!
页:
[1]