I’m trying to get a regular expression to replace all the links out of a text string for the value of the link.
A link may look like these:
<a href="http://whatever" id="an_id" rel="a_rel">the link</a>
<a href="/absolute_url/whatever" id="an_id" rel="a_rel">the link</a>
I want a regular expression that I get: the link
It’s far from being perfect, but you need to provide more examples of what is a correct match and what isn’t (e.g. what about whitespaces?)