Updated ereg with preg_match.