Regular expression to get all the link tags and there value from a string

 

hrefLink = "This text will have html + text + a link attribute "; \\ The below code will get you the content from <a> till </a>.

MatchCollection m = Regex.Matches(hrefLink, @"(<a.*?>.*?</a>)",RegexOptions.Singleline);

foreach(Match m1 in m){string value = m1.Groups[1].Value;}