正則匹配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;
}string

相關文章
相關標籤/搜索