note 79536 deleted from function.mail by danbrown
| From: | danbrown@php.net | Date: | Sat, 25 Apr 2009 14:58:13 +0000 |
| Subject: | note 79536 deleted from function.mail by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-153730@lists.php.net to get a copy of this message | ||
Note Submitter: I.Ruau
----
I recently searched for a decent regex to *correctly* validate e-mail addresses according to
RFC-2822.
Most regexes I found on the web (including in the comments here) are way too strict.
Then I stumbled upon this compliant parser:
http://code.iamcal.com/php/rfc822/?C=D;O=A
FWIW here is the complete, unrolled regex... which is quite edifying! ;-)
http://code.iamcal.com/php/rfc822/full_regexp.txt
Hope this helps.