note 32202 added to function.eregi

From: Date: Tue, 20 May 2003 12:11:19 +0000
Subject: note 32202 added to function.eregi
Groups: php.notes 
Request: Send a blank email to php-notes+get-48658@lists.php.net to get a copy of this message
all the email check does not allows the check of the country so I guess this is the best solution if (!ereg("^[[:alnum:]]+([_\\.-][[:alnum:]]+)*" . "@[[:alnum]]+([\\.-][[:alnum:]]+)*)+" . "\\.[[:alpha:]]{2,}" . "\\.[[:alpha:]]{0,2}" . "$",$email) { echo "Error : '$email' is not a valid email address\n"; } ---- Manual Page -- http://www.php.net/manual/en/function.eregi.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32202 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32202&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32202&report=yes

« previous php.notes (#48658) next »