a better correction should be :
$txt = preg_replace("/<TAG[^>]*>(.*?)<\/TAG>/is",$txt);
the '?' make the preg function lazy and stop at the first match.
Moreover preg functions are faster than ereg functions.
Last edited by Jer; 04-12-2004 at 03:00 AM.
|