View Single Post
Old 04-12-2004, 02:57 AM   #6
Jer
Green Mole
 
Join Date: Apr 2004
Posts: 4
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.
Jer is offline   Reply With Quote