|
5精币
{"result":0,"msg":"\u8bf7\u6c42\u6210\u529f","data":{"result":"0","total_num":50,"unlock_num":50,"list":[{"prop_id":5,"name":"\u5f31\u9e21","prop_type":"2","is_click":1,"count":5,"expiry":1,"met":1550764371,"icon":"https:\/\/gfs-op.douyucdn.cn\/dygift\/1606\/94f7e067812518652383ae608f59392a.png","gif":"https:\/\/gfs-op.douyucdn.cn\/dygift\/1606\/e144b05fd7dec1b194909e02b6dff92f.gif","type":2,"price":"20","rel_id":"193","exp":2,"intro":"\u771f\u662f\u592a\u9db8\u62c9~","description":"","devote":0,"intimate":2,"attack":0},{"prop_id":4,"name":"\u8d5e","prop_type":"2","is_click":1,"count":4,"expiry":23,"met":1552641945,"icon":"https:\/\/gfs-op.douyucdn.cn\/dygift\/1606\/ecb0d4c424ff0bafbf4ba52a3284268b.png","gif":"https:\/\/gfs-op.douyucdn.cn\/dygift\/1606\/b09488ff5ebe85c4f66e72e27b53d517.gif","type":2,"price":"10","rel_id":"192","exp":1,"intro":"\u8d5e\u4e00\u4e2a\uff01","description":"","devote":0,"intimate":1,"attack":0},{"prop_id":23,"name":"\u7a33","prop_type":"2","is_click":1,"count":4,"expiry":25,"met":1552774043,"icon":"https:\/\/gfs-op.douyucdn.cn\/dygift\/1612\/9e8e5a8a3c442933926d877d62b08b1b.png","gif":"https:\/\/gfs-op.douyucdn.cn\/dygift\/1612\/982ac6fbc3ec3cbfb126ef8a6d3427a3.gif","type":2,"price":"10","rel_id":"520","exp":1,"intro":"","description":"","devote":0,"intimate":1,"attack":0},{"prop_id":268,"name":"\u7c89\u4e1d\u8367\u5149\u68d2","prop_type":"2","is_click":1,"count":50,"expiry":1,"met":1550764799,"icon":"https:\/\/gfs-op.douyucdn.cn\/dygift\/1705\/7db9beee246848252f1c7fe916259f4e.png","gif":"https:\/\/gfs-op.douyucdn.cn\/dygift\/1705\/92c614debee11c3db11f853f3c02ed91.gif","type":2,"price":"10","rel_id":"824","exp":1,"intro":"\u7c89\u4e1d\u4eec\uff0c\u6325\u821e\u8d77\u4f60\u4eec\u7684\u8367\u5149\u68d2~","description":"","devote":0,"intimate":1,"attack":0}],"used_prop":[],"mst":"","ry":0}}
这是源文本
我要取"count":50," 这个数字50 其他的不要
|
最佳答案
查看完整内容
.局部变量 正则, 正则表达式类
正则.创建 (#引号 + “count” + #引号 + “:(\d+)”, #常量1, 真) ' 部分传参请自行更改~
调试输出 (正则.取子匹配文本 (正则.取匹配数量 (), 1))
|