I have a string that looks like:
Pretext<thecontentineed>
I’ trying to write a regex that will pull “thecontentineed” from that string using preg_match
I’ve tried:
$string = "Pretext<thecontentineed>";
preg_match("/<.*?>/" , $string, $output);
But that returns an empty array.
You forgot the ()