摘要:
protected string[] GetSrc(string str) { string regStr = "\\<IMG\\ [\\s\\S]*?src=['\"]?(?<p>[^'\"\\>\\ ]+)['\"\\>\\ ]"; string cont1 = string.Empty; //图片的src Regex reg = new Regex(regStr, RegexOptions.Compiled | RegexOptions.IgnoreCase); Match match 阅读全文
posted @ 2011-03-04 13:55
红鲤鱼与驴与绿鲤鱼
阅读(1023)
评论(0)
推荐(0)
摘要:
protected string removeHtml(string HTMLStr) { return Regex.Replace(HTMLStr, @"<IMG.*?src=(['""]?)(?<url>[^'"" ]+)(?=\1)[^>]*>", delegate(Match m) { return ""; }); } 阅读全文
posted @ 2011-03-04 13:27
红鲤鱼与驴与绿鲤鱼
阅读(327)
评论(0)
推荐(1)
浙公网安备 33010602011771号