Regex regex2 = new Regex(@"<a[^>]+href=s*(?:'(?<href>[^']+)'|""(?<href>[^""]+)""|(?<href>[^>s]+))s*[^>]*>(?<text>.*?)</a>", RegexOptions.IgnoreCase);
for (Match match2 = regex2.Match(html); match2.Success; match2 = match2.NextMatch())
{
string aname = match2.Groups["text"].Value;
string url = match2.Groups["href"].Value;
}