Don't use regex to parse HTML(as @hsz mentioned). See why: RegEx match open tags except XHTML self-contained tags. Instead of it you could use HTML parser like HtmlAgilityPack for this:
var html = @"ToolStripItemOwnerCollectionUIAdapter.GetInsertingIndex Method ...";
HtmlDocument document = new HtmlDocument();
document.LoadHtml(html);
var link = document.DocumentNode.SelectSingleNode("//a");
if (link != null)
{
var href = link.Attributes["href"].Value;
var innerText = link.InnerText;
}
Now href
contains http://msdn.microsoft.com/en-us/library/Aa538627.aspx
; innerText
(AKA the string between tags) contains ToolStripItemOwnerCollectionUIAdapter.GetInsertingIndex Method ...
.
Isn't it easier than regex?