I want a regular expression to remove the following:
<a class="a" href="a.com">string</a>
What I want is if there was a class attribute in the tag i want the whole tag removed (<a class="a" href="a.com"></a>
) and the the string between tag retrieved (string
), else keep it as it's.