note 2299 deleted from function.ereg by jimw

From: Date: Fri, 02 Nov 2001 01:20:12 +0000
Subject: note 2299 deleted from function.ereg by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-20110@lists.php.net to get a copy of this message
Sampe code to check an e-mail address - just copy and paste it into your own script. Hope this helps someone: if (eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*$",$e_mail)): print "Valid"; else: print "Invalid"; endif

« previous php.notes (#20110) next »