validate email addresses

From: Date: Sat, 28 Aug 1999 22:36:51 +0000
Subject: validate email addresses
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-10308@lists.php.net to get a copy of this message
I found this code on the php site that allows the validation of 1 dot format email addresses, like scott@onesight.com: eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$",$email) Does anyone know how to do a multi . format validation that will work for 1 or more .'s? Like, scott@cs.onesight.com or scott@cs.1.onesight.com. Thanks, Scott

« previous php.dev (#10308) next »