note 42713 deleted from function.preg-match by aidan

From: Date: Sun, 04 Jul 2004 16:21:25 +0000
Subject: note 42713 deleted from function.preg-match by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-72528@lists.php.net to get a copy of this message
Note Submitter: Zach Johnson ---- Read RFC 2822 regarding email addresses to find that the following is a more correct way of validating email addresses: preg_match( "/^[-^!#$%&'*+\/=?`{|}~.\w]+@[-a-zA-Z0-9]+(\.[-a-zA-Z0-9]+)+$/", $email );

« previous php.notes (#72528) next »