C# 获取a标签的正则表达式求助

例如该链接为< a href="http://www.baidu.com" title="标题">标签内容</ a>,求一个正则表达式能匹配到到a标签href、title和“标签内容”的内容,title的位置可能在href前面,也有可能在href后面,或者就没有title

用jQuery不行么?
获取a标签.

直接用xml类库解析xml节点。比正则容易。

 (?<=\<a\s(href|title)[^\>]+?>)(?=\<\/a\>)

MatchCollection mc = Regex.Matches(@"< a href="http://www.baidu.com" title="标题">标签内容</ a>",
@"(?isn)[^""]+)\stitle=""(?[^""]+)[^>]+>(?.+?)");
foreach (Match m in mc)
{
MessageBox.Show(m.Groups["url"].Value + Environment.NewLine +
m.Groups["title"].Value + Environment.NewLine + m.Groups["text"].Value);
}