日期:2014-05-17 浏览次数:20437 次
<img src=""/>
<img src="" style="" class="" style="width:353px;height:249px;" alt=""/>
Regex reg1 = new Regex(@"(?i)<img[^>]*?src=(['""]?)(?<src>[^'""\s>]+)\1[^>]*>", RegexOptions.IgnoreCase
------解决方案--------------------
RegexOptions.Singleline);
MatchCollection mc = reg1.Matches(page);
foreach (Match m1 in mc)
{
string imgUrl = m1.Groups["src"].Value;
}