I've seen a solution for not having to rework usage of the ereg function for PHP 5.3: Good alternative to eregi() in PHP
It uses if(!function_exists....
Is there a function that can be used in this way for ereg_replace
?
ereg_replace("<!--.*-->","",$str);
ereg_replace("[^a-z,A-Z]", "", $str);