Regex re = new Regex(@"<img src=([""']?)(?<scr>[^>]*)(\1)[\s]*>", RegexOptions.None);
MatchCollection mc = re.Matches(strText);
foreach (Match ma in mc)
{
strSrc += ma.Groups["scr"].Value + "|";
}
如何能区别大定的IMG如<IMG SRC="" ALT="">等
...全文
1193打赏收藏
这个正则如何修改?
Regex re = new Regex(@"<img src=([""']?)(?[^>]*)(\1)[\s]*>", RegexOptions.None); MatchCollection mc = re.Matches(strText); foreach (Match ma in mc) { strSrc += ma.Groups["scr"].Value + "|"; } 如何能区别大定的IMG如等