码迷,mamicode.com
首页 > Windows程序 > 详细

c#正则表达式2

时间:2016-06-22 01:44:44      阅读:249      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!