I have a string that contains HTML page content, scattered throughout will be HREF's in the format of:
<A HREF="text here ending in a /">test</A>
<A HREF="text here ending in something else">test</A>
I would like to construct the most efficient regex replace function possible that would insert the string:
in the 'A HREF' tags where the the location text ends in a "/", such as:
<A HREF="text here ending in a /" onclick="myevent;">
The remaining 'A HREF' tags where the location text did not end in "/" would not be modified.