正则匹配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;
}
本文来自博客园,作者:程序猿网友666,转载请注明原文链接:https://www.cnblogs.com/chenghu/p/3490894.html

浙公网安备 33010602011771号