I'm trying to figure out how to remove all the text and HTML on a dynamically generated page that is between the end of the each link tag </a> and the start of the next link tag <a
For example if I have this code:
<a href="webaddresshere.com">link text here</a><SPAN class="abstracttext"><BR>Some text I don't what to have which follows some html tags I don't want either</span><br><br><a href="anotheraddresshere.com">more link text here</a>
I would like to end up with this:
<a href="webaddresshere.com">link text here</a><a href="anotheraddresshere.com">more link text here</a>
All the above text would come through in a variable so if possible I would like to accomplish this using regular expressions and the ReReplace tag like:
<cfset MyVariable = #ReReplaceNoCase(MyVariable, "Regular Expressions Here", "", "ALL")#>
Anyone know the right regular expression to use here?