日期:2014-05-18 浏览次数:20465 次
string sPtn = @"<img[^>]+?src=([""'])([^\1]+?)\1[^>]*/?>";
Match mt = Regex.Match(sHtml, sPtn);
while (mt.Success)
{
Console.WriteLine(mt.Groups[2].Value);
mt = mt.NextMatch();
}
------解决方案--------------------
加个RegexOptions.IgnoreCase