开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

查看: 1734|回复: 2
收起左侧

[完成] 正则匹配JS文本

 关闭 [复制链接]
结帖率:78% (64/82)
发表于 2018-6-2 23:23:04 | 显示全部楼层 |阅读模式   广东省深圳市
5精币
哪位大神帮匹配下,,我用(.*?) 一直匹配不出来  匹配所有这一段  ‘singerId\":51628123,“  匹配51628123数字即可
谢谢
[{\"songSize\":10058940,\"status\":1,\"singer\":\"Vk\",\"singerId\":51628123,\"playCnt\":1163433,\"optComposer\":null,\"songWriter\":null,\"type\":2,\"style\":\"\\u513f\\u6b4c|\\u6c11\\u8c23|\",\"createTime\":\"2017-03-18T20:02:00\",\"ext\":\"mp3\",\"popularityCnt\":83499032,\"originSinger\":\"\\u6697\\u6760\",\"composer\":null,\"collectCnt\":12205,\"downloadCnt\":19076,\"songId\":15820406,\"nickName\":\"\\u50b2\\u5a07\\u5c11\\u5e74_Vk\",\"postProduction\":null,\"songName\":\"<em class=\\\"keyword\\\">\\u7ae5\\u8bdd<\\/em>\\u9547\",\"typeName\":\"\\u7ffb\\u5531\",\"songurl\":\"http:\\/\\/5sing.kugou.com\\/fc\\/15820406.html\",\"downloadurl\":\"http:\\/\\/5sing.kugou.com\\/fc\\/down\\/15820406\",\"typeEname\":\"fc\"},{\"songSize\":10027638,\"status\":1,\"singer\":\"\\u8427\\u5fc6\\u60c5\",\"singerId\":8498290,\"playCnt\":600744,\"optComposer\":null,\"songWriter\":null,\"type\":2,\"style\":\"\\u6c11\\u8c23|\\u6d41\\u884c\",\"createTime\":\"2017-01-12T19:56:00\",\"ext\":\"mp3\",\"popularityCnt\":42768877,\"originSinger\":\"\\u6697\\u6760\",\"composer\":null,\"collectCnt\":6505,\"downloadCnt\":11413,\"songId\":15686653,\"nickName\":\"\",\"postProduction\":null,\"songName\":\"<em class=\\\"keyword\\\">\\u7ae5\\u8bdd<\\/em>\\u9547\",\"typeName\":\"\\u7ffb\\u5531\",\"songurl\":\"http:\\/\\/5sing.kugou.com\\/fc\\/15686653.html\",\"downloadurl\":\"http:\\/\\/5sing.kugou.com\\/fc\\/down\\/15686653\",\"typeEname\":\"fc\"},{\"songSize\":10032090,\"status\":1,\"singer\":\"\\u4e09\\u65e0\",\"singerId\":5621105,\"playCnt\":269781,\"optComposer\":null,\"songWriter\":null,\"type\":2,\"style\":\"\\u6d41\\u884c|\\u6c11\\u8c23|\",\"createTime\":\"2016-12-27T08:10:00\",\"ext\":\"mp3\",\"popularityCnt\":17832361,\"originSinger\":\"\\u6697\\u6760\",\"composer\":null,\"collectCnt\":2623,\"downloadCnt\":5611,\"songId\":15653924,\"nickName\":\"\",\"postProduction\":null,\"songName\":\"<em class=\\\"keyword\\\">\\u7ae5\\u8bdd<\\/em>\\u9547\",\"typeName\":\"\\u7ffb\\u5531\",\"songurl\":\"http:\\/\\/5sing.kugou.com\\/fc\\/15653924.html\",\"downloadurl\":\"http:\\/\\/5sing.kugou.com\\/fc\\/down\\/15653924\",\"typeEname\":\"fc\"},{\"songSize\":4007754,\"status\":1,\"singer\":\"\\u9756\\u7426\\/\\u84dd\\u6cab\\/\\u4e8c\\u9a74\",\"singerId\":32804587,\"playCnt\":120855,\"optComposer\":null,\"songWriter\":null,\"type\":2,\"style\":\"\\u6d41\\u884c\",\"createTime\":\"2017-04-10T03:59:00\",\"ext\":\"\",\"popularityCnt\":9640006,\"originSinger\":\"\\u6697\\u6760\",\"composer\":null,\"collectCnt\":11,\"downloadCnt\":57,\"songId\":15872740,\"nickName\":\"\\u9756\\u7426_kevin\",\"postProduction\":null,\"songName\":\"<em class=\\\"keyword\\\">\\u7ae5\\u8bdd<\\/em>\\u9547\",\"typeName\":\"\\u7ffb\\u5531\",\"songurl\":\"http:\\/\\/5sing.kugou.com\\/fc\\/15872740.html\",\"downloadurl\":\"http:\\/\\/5sing.kugou.com\\/fc\\/down\\/15872740\",\"typeEname\":\"fc\"},{\"songSize\":\"3909632\",\"status\":1,\"singer\":\"\",\"singerId\":5504914,\"playCnt\":148212,\"optComposer\":null,\"songWriter\":null,\"type\":3,\"style\":null,\"createTime\":\"2011-10-09T11:47:20\",\"ext\":\"mp3\",\"popularityCnt\":9411878,\"originSinger\":\"\\u5149\\u826f\",\"composer\":null,\"collectCnt\":93,\"downloadCnt\":8713,\"songId\":1009627,\"nickName\":\"DS \\u5c0f\\u519b\",\"postProduction\":null,\"songName\":\"<em class=\\\"keyword\\\">\\u7ae5\\u8bdd<\\/em>\",\"typeName\":\"\\u4f34\\u594f\",\"songurl\":\"http:\\/\\/5sing.kugou.com\\/bz\\/1009627.html\",\"downloadurl\":\"http:\\/\\/5sing.kugou.com\\/bz\\/down\\/1009627\",\"typeEname\":\"bz\"},{\"songSize\":9992124,\"status\":1,\"singer\":\"\\u5c0f\\u4e49\\u5b66\\u957f\",\"singerId\":1520978,\"playCnt\":119910,\"optComposer\":null,\"songWriter\":null,\"type\":2,\"style\":\"\\u6c11\\u8c23|\\u6d41\\u884c|\",\"createTime\":\"2016-09-30T20:23:00\",\"ext\":\"mp3\",\"popularityCnt\":8572514,\"originSinger\":\"\\u6697\\u6760\",\"composer\":null,\"collectCnt\":1560,\"downloadCnt\":2064,\"songId\":15484101,\"nickName\":\"\",\"postProduction\":null,\"songName\":\"<em class=\\\"keyword\\\">\\u7ae5\\u8bdd<\\/em>\\u9547\",\"typeName\":\"\\u7ffb\\u5531\",\"songurl\":\"http:\\/\\/5sing.kugou.com\\/fc\\/15484101.html\",\"downloadurl\":\"http:\\/\\/5sing.kugou.com\\/fc\\/down\\/15484101\",\"typeEname\":\"fc\"},{\"songSize\":6716958,\"status\":1,\"singer\":\"\\u9648\\u4e00\\u53d1\",\"singerId\":39368268,\"playCnt\":135174,\"optComposer\":\"\\u661f\\u5531\\u5f55\\u97f3\\u68da\",\"songWriter\":\"\\u7af9\\u541b\",\"type\":1,\"style\":\"\\u6d41\\u884c\",\"createTime\":\"2016-11-11T21:01:00\",\"ext\":\"mp3\",\"popularityCnt\":8499889,\"originSinger\":\"\",\"composer\":\"\\u6697\\u6760\",\"collectCnt\":1520,\"downloadCnt\":1680,\"songId\":3222428,\"nickName\":\"\\u96ea\\u7f18\\u661f\\u5531\\u5f55\\u97f3\\u68da\",\"postProduction\":\"\\u661f\\u5531\\u5f55\\u97f3\\u68da\",\"songName\":\"<em class=\\\"keyword\\\">\\u7ae5\\u8bdd<\\/em>\\u9547\",\"typeName\":\"\\u539f\\u521b\",\"songurl\":\"http:\\/\\/5sing.kugou.com\\/yc\\/3222428.html\",\"downloadurl\":\"http:\\/\\/5sing.kugou.com\\/yc\\/down\\/3222428\",\"typeEname\":\"yc\"},{\"songSize\":9487262,\"status\":1,\"singer\":\"5n\",\"singerId\":293528,\"playCnt\":84039,\"optComposer\":null,\"songWriter\":null,\"type\":2,\"style\":\"\\u6d41\\u884c|\",\"createTime\":\"2014-04-18T17:00:00\",\"ext\":\"mp3\",\"popularityCnt\":6980057,\"originSinger\":\"\\u4f55\\u6d01\",\"composer\":null,\"collectCnt\":621,\"downloadCnt\":2034,\"songId\":12622298,\"nickName\":\"\\u543e\\u6069\",\"postProduction\":null,\"songName\":\"\\u574f<em class=\\\"keyword\\\">\\u7ae5\\u8bdd<\\/em>\",\"typeName\":\"\\u7ffb\\u5531\",\"songurl\":\"http:\\/\\/5sing.kugou.com\\/fc\\/12622298.html\",\"downloadurl\":\"http:\\/\\/5sing.kugou.com\\/fc\\/down\\/12622298\",\"typeEname\":\"fc\"},{\"songSize\":3889109,\"status\":1,\"singer\":\"\\u6587\\u513f\",\"singerId\":32065444,\"playCnt\":66174,\"optComposer\":null,\"songWriter\":null,\"type\":2,\"style\":\"\\u6d41\\u884c|\",\"createTime\":\"2013-10-16T23:13:00\",\"ext\":\"mp3\",\"popularityCnt\":5371738,\"originSinger\":\"\\u5149\\u826f\",\"composer\":null,\"collectCnt\":92,\"downloadCnt\":1372,\"songId\":11062072,\"nickName\":\"\\u840c\\u59b9\\u5b50\\u6587er\",\"postProduction\":null,\"songName\":\"<em class=\\\"keyword\\\">\\u7ae5\\u8bdd<\\/em>\",\"typeName\":\"\\u7ffb\\u5531\",\"songurl\":\"http:\\/\\/5sing.kugou.com\\/fc\\/11062072.html\",\"downloadurl\":\"http:\\/\\/5sing.kugou.com\\/fc\\/down\\/11062072\",\"typeEname\":\"fc\"},{\"songSize\":\"6319423\",\"status\":1,\"singer\":\"\",\"singerId\":266450,\"playCnt\":107578,\"optComposer\":null,\"songWriter\":null,\"type\":3,\"style\":null,\"createTime\":\"2006-08-19T07:58:08\",\"ext\":\"mp3\",\"popularityCnt\":4994391,\"originSinger\":\"\\u7ae5\\u8bdd\",\"composer\":null,\"collectCnt\":49,\"downloadCnt\":10725,\"songId\":36597,\"nickName\":\"\\u7693\\u97e9\",\"postProduction\":null,\"songName\":\"<em class=\\\"keyword\\\">\\u7ae5\\u8bdd<\\/em>\",\"typeName\":\"\\u4f34\\u594f\",\"songurl\":\"http:\\/\\/5sing.kugou.com\\/bz\\/36597.html\",\"downloadurl\":\"http:\\/\\/5sing.kugou.com\\/bz\\/down\\/36597\",\"typeEname\":\"bz\"}]

最佳答案

查看完整内容

singerId\\":(.*?),\\

结帖率:95% (19/20)
发表于 2018-6-2 23:23:05 | 显示全部楼层   山东省东营市
singerId\\":(.*?),\\

点评

转义掉就好了   山东省东营市  发表于 2018-6-2 23:32
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报电话0663-3422125,QQ: 793400750,邮箱:wp@125.la
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

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