Replaced ereg() with preg_match()