1。匹配 <a href=""> </a> 并取得url和text
MatchCollection mc = Regex.Matches(str, @"<a[^>]*href=(['""]?)(?<url>(?:\\""|[^""'\s>])*)\1[^>]*>(?<text>[\s\S]*?)</a>", RegexOptions.IgnoreCase);
foreach (Match m in mc)
{
richTextBox1.Text += m.Groups["url"].Value + "\n";
richTextBox1.Text += m.Groups["text"].Value + "\n";
}