Hi ,
I am trying to strip out all the links and text between anchors tags from a html string as below:
string LINK_TAG_PATTERN = "/<a\b[^>]*>(.*?)<\\/a>";
htmltext = Regex.Replace(htmltext, LINK_TAG_PATTERN, string.Empty);
This is not working anyone have ideas why?
Thanks a lot,
Edit: the regex was from this link http://stackoverflow.com/questions/1991337/extract-text-and-links-from-html-using-regular-expressions