Re: form validation question - regex not working

From: Date: Wed, 21 Aug 2002 20:01:44 +0000
Subject: Re: form validation question - regex not working
Groups: php.db 
Request: Send a blank email to php-db+get-21299@lists.php.net to get a copy of this message
Jason Wong <phplist@gremlins.com.hk> wrote on 08/21/2002 12:10:02 PM: > It's only checking for addresses of the form aaa@bbb.ccc > As you can see, the list address (php-db@lists.php.net), and my address > (phplist@gremlins.com.hk) would be treated as invalid. Not very clever is it? Got it figured out, and foreign address do work now - if (empty($useremail) || !eregi("^([A-Za-z0-9\.\_-])+@([A-Za-z0-9\_-])+\.([A-Za-z])+\.([a-z])*$", $useremail)) -- Chip

« previous php.db (#21299) next »