quick question.
I would like to remove the sup tag from the next line and all the contents inside it.
$string = "Priority Mail<sup>®</sup> International";
How should I do it?
I assume something like this will work:
preg_replace("(<([a-z]+)>.*?</\\1>)is","",$input);
$string = preg_replace ("/<sup>(.*?)<\/sup>/i", "", $string);
You should know that (. *?) Cannot deal with \ n or \ r, so filter them first.