replace ereg_replace with preg_replace
Hi need to change the function ereg_replace("[\]", "", $theData) to preg_replace ...
Hi need to change the function ereg_replace("[\]", "", $theData) to preg_replace ...
I've converted some eregs to preg_matches by replacing the initial ^ and final $ with /s (I hope that was sufficient), but I have an ereg_replace in the same function that I'm not sure about. It's from a checkPostcode function to be found here. // Take account of the special BFPO c/o format $postcode = ereg_replace ('C\/O', 'c/o ', $po...