string html = "<P><A href='~abc/ccg/ab.jpg' height=/"4/" width='3' >文字</A><A width=/"4/" style=/"color:#ddd; font-weight:bold;/" mm_href=/"http:www.baidu.com/" href=/"
> href=/"Regex reg = new Regex("<a([//s]+|[//s]+[^<>]+[//s]+)href=(/"(?<href>[^<>/"']*)/"|'(?<href>[^<>/"']*)')[^<>]*>", RegexOptions.IgnoreCase);
MatchCollection matchCollection = reg.Matches(html);
MessageBox.Show(matchCollection.Count.ToString());
foreach (Match match in matchCollection)
{
MessageBox.Show(match.Groups["href"].ToString());
}