Re: Regex for email validation

From: Date: Wed, 27 Aug 2008 08:34:40 +0000
Subject: Re: Regex for email validation
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-278763@lists.php.net to get a copy of this message
> Does any have a regex for email validation? I need to allow only period and > underscore in the local part , we would need a @ and .com or watever for > domain. You could: 1. Take the isValidInetAddress() method out of the PEAR Mail_RFC822 class and use that. 2. Use the filter extension which I understand is now part of PHP (5.2.x+) This would the preferable option. -- Richard Heyes HTML5 Graphing: http://www.phpguru.org/RGraph

« previous php.general (#278763) next »