[wp-trac] Re: [WordPress Trac] #4616: is_email isn't rfc2822 conformant

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 20 23:59:51 GMT 2007


#4616: is_email isn't rfc2822 conformant
-----------------------+----------------------------------------------------
 Reporter:  hendry     |        Owner:  anonymous
     Type:  defect     |       Status:  new      
 Priority:  normal     |    Milestone:  2.4      
Component:  General    |      Version:           
 Severity:  normal     |   Resolution:           
 Keywords:  has-patch  |  
-----------------------+----------------------------------------------------
Comment (by ryan):

 The PEAR module also offers these cheap checks:

 {{{
 $regex = $strict ? '/^([.0-9a-z_+-]+)@(([0-9a-z-]+\.)+[0-9a-z]{2,})$/i' :
 '/^([*+!.&#$|\'\\%\/0-9a-z^_`{}=?~:-]+)@(([0-9a-z-]+\.)+[0-9a-z]{2,})$/i';
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4616#comment:17>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list