note 36428 deleted from function.eregi by vincent

From: Date: Thu, 09 Oct 2003 10:52:07 +0000
Subject: note 36428 deleted from function.eregi by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-58104@lists.php.net to get a copy of this message
Note Submitter: andrea@3site.it ---- // simple function to check an email function check_mail($m) { // andr3a [ ITA ] $r = "([a-z0-9]+[\.|_|\-]{0,1}){1,3}[a-z0-9]+"; $r = "^{$r}\@{1}{$r}\.{1}[a-z0-9]{2,6}$"; return eregi($r, $m); } if(check_mail("email@email.museum")) { ... }

« previous php.notes (#58104) next »