On Wed, Jun 22, 2011 at 9:36 PM, Florian Pritz <bluew...@xinu.at> wrote:
> + return ( ! > preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", > $addy)) ? FALSE : TRUE; > Some legitimate email address will not be matched by your regexp. Better use built-in PHP functions: return filter_var($addy,FILTER_VALIDATE_EMAIL); -- Cédric Girard