string text = "<A href="http://www.nomesito.com/" title="A" />"; string pattern = @"\bhref" + '"' + @"\S*" + '"' + @"\b"; MatchCollection matches = Regex.Matches(text, pattern, RegexOptions.IgnoreCase);