正则匹配img标签 蜘蛛 爬取分析 新闻采集


string ostr = "aaaaaa<img asddsa src="" asddsasd />aaaaaaa<img src="" />";
Match m = Regex.Match(content, @"(<img.*?src=.*?/>)", RegexOptions.IgnoreCase);
if (m.Success)
{
string s = m.Value;
}

原文地址:https://www.cnblogs.com/chenghu/p/3490894.html