Hello I am using preg_match to parse for data, it works 99% of the time but sometimes it gives me a result like:
$match[1] = <a href="example">text i want</a>
when what I really want is the "text i want" string. I am looping preg match and 99% of the time $match[1] gives me the text string i want but I want to implement something into the code like
if($match[1] is of the form <a href="example">blah blah</a>){
$match[1] = "blah blah" }
How would I go about achieving this? Thanks for reading.