I need help on regex or preg_match because I am not that experienced yet with regards to those so here is my problem.
I need to get the value \"get me\" but I think
try $pattern = "<($tagname)\b.*?>(.*?)\1>" and return $matches[2]
$pattern = "<($tagname)\b.*?>(.*?)\1>"
return $matches[2]