好友
阅读权限30
听众
最后登录1970-1-1
|
遗憾迟香
发表于 2020-2-8 10:47
本人大一,软件专业,学的C#
练习时长四个月,虽然没有挂科,但本人技术真的不咋地
高考完的暑假自学的易语言,喜欢用正则表达式爬虫
但是现在不想再用易语言了,报毒是一个问题,还有易语言处理字符串十分麻烦,C#字符串中有引号直接\"搞定,而易语言要#引号
而且易语言面向对象功能不够灵活
听说python简单易学,适合爬虫,但它设计窗体十分麻烦
现在我开始学c#的正则表达式
网上的视频看不懂,大多也不是我所需要的,我只是想用它提取字符串
源字符串示例(我随便打的):
{"id":"46416", "name":"cnfujfu", "name2":"ftynufun", "isVip":"0", "num":"71464214"},
{"id":"45268", "name":"ntfyutu", "name2":"fnuyyut", "isVip":"1", "num":"54213563"},
{"id":"82968", "name":"bvghnkjjky", "name2":"tniyiyu", "isVip":"0", "num":"16341315"},
{"id":"826826", "name":"uynmgftt", "name2":"fnuyinf", "isVip":"0", "num":"428617"},
{"id":"8268", "name":"gyikngnk", "name2":"acrwefrc", "isVip":"1", "num":"7216786"},
{"id":"176989", "name":"gmyukymk", "name2":"bvrtytrdybdy", "isVip":"0", "num":"51464356"},
{"id":"7965789", "name":"fgtynbyudu", "name2":"ergehgerg", "isVip":"0", "num":"405354"},
...
现在我想提取int[] id,string[] name,int[] num;
请问用C#语言如何实现? |
|