private static MatchCollection GetAttributeMatches(Match elementMatch) { var regex = new Regex(HtmlAttributeRegex); return regex.Matches(elementMatch.Groups["attributes"].Value); }