Possible Duplicate:
replace ereg_replace with preg_replace
I've upgraded to PHP 5.3 and I need to know how to convert these tags to Preg_replace.
Any ideas?
$html = ereg_replace("<(/)?(font|span|del|ins)[^>]*>", "", $html);
// then run another pass over the html (twice), removing unwanted attributes
$html = ereg_replace("<([^>]*)(class|lang|style|size|face)=(\"[^\"]*\"|'[^']*'|[^>]+)([^>]*)>", "<\\1>", $html);
$html = ereg_replace("<([^>]*)(class|lang|style|size|face)=(\"[^\"]*\"|'[^']*'|[^>]+)([^>]*)>", "<\\1>", $html);