MatchCollection matches = Regex.Matches(content, @"<a[^>]*href=([""'])?(?<href>[^'""]+)\1[^>]*>", RegexOptions.IgnoreCase);
foreach (Match item in matches)
{
var href= item.Groups[1].Value;
}
MatchCollection matches = Regex.Matches(content, @"<a[^>]*href=([""'])?(?<href>[^'""]+)\1[^>]*>", RegexOptions.IgnoreCase);
foreach (Match item in matches)
{
var href= item.Groups[1].Value;
}
相关推荐
评论