首页 > Windows开发 > 详细

c#正则表达式2

时间:2016-06-22 01:42:50      阅读:284      评论:0      收藏:0      [点我收藏+]

System.Text.RegularExpressions.Regex ___rx = new System.Text.RegularExpressions.Regex(@"""url"":""(?<zip>.*?)""",
System.Text.RegularExpressions.RegexOptions.Compiled | System.Text.RegularExpressions.RegexOptions.IgnoreCase | System.Text.RegularExpressions.RegexOptions.Singleline);

//"{\"needcode\":true,\"url\":\"https://pin.aliyun.com/get_img?sessionid=a42421a0b2961b71c9e39de5c52bd3e8&identity=taobao.login&type=150_40\"}"

//pageContent = CommonFunction.PostPage();
System.Text.RegularExpressions.MatchCollection ___matches3 = ___rx.Matches(pg);
if (___matches3.Count == 0)
{
SetStatus("3 没有找到 um_to!登陆失败!!!!", 0);

return -4;
}
regcheckcode = ___matches3[0].Result("${zip}");

c#正则表达式2

原文:http://www.cnblogs.com/zhshlimi/p/5605490.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!