Re: email validation string.

From: Date: Sat, 20 Jan 2007 14:22:00 +0000
Subject: Re: email validation string.
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-247443@lists.php.net to get a copy of this message
At 3:04 PM +0000 1/20/07, Roman Neuhauser wrote:
# tedd@sperling.com / 2007-01-20 08:53:32 -0500:
I picked this up in my travels. function validate_email($email) {
    // Create the syntactical validation regular expression
    $regexp =
"^([_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-z0-9-]+)*(\.[a-z]{2,4})$";
One of my email addresses is neuhauser+pgsql-general#postgresql.org@sigpipe.cz.
Thanks, I'll add that to my kill list. tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#247443) next »