Here is an example of the string I'm matching against.
<div class="unique"><a href="/2343242/link to something target="_self">"HERE IS THE TEXT
I'D LIKE"</a></div>
This gets me way too much. As in it doesnt stop at the and it seems to still return the div and a tags.
/(?:<div class="unique">)?(?:<a href=.*>)?.*(?:<)?/
This returns nothing
/(?:<div class="unique">)?(?:<a href=.*>)?.*(?:</a>)?/
So shouldn't the first part match against the unique "div" tag and the following "a" tag and not return them. Then grab everything up until the first < that it hits which would be the closing "a" tag? I'm lost as to what is mucking this up.
Thank you.