note 90775 added to function.preg-match

From: Date: Sat, 09 May 2009 07:11:22 +0000
Subject: note 90775 added to function.preg-match
Groups: php.notes 
Request: Send a blank email to php-notes+get-154381@lists.php.net to get a copy of this message
FILTER_VALIDATE_EMAIL is very poor at validating email addresses. Misses all sorts of things. This RegEx is much much better. http://SimonSlick.com/VEAF/ For example it fails the following plus a whole lot more: ""@domain.tld is valid (empty double quoted local part is RFC compliant) local-part@tld is valid (tld only domain is RFC compliant) local-part@domain-label-longer-than-63-octets.tld is not valid (RFC restricts domain labels to 63 octets each) local-part@domain.tld- is not valid (domain labels can not end with hyphen) local-part@[address-literal] "local\"part"@domain.tld is valid ---- Server IP: 209.41.74.194 Probable Submitter: 71.117.194.253 ---- Manual Page -- http://www.php.net/manual/en/function.preg-match.php Edit -- https://master.php.net/note/edit/90775 Del: integrated -- https://master.php.net/note/delete/90775/integrated Del: useless -- https://master.php.net/note/delete/90775/useless Del: bad code -- https://master.php.net/note/delete/90775/bad+code Del: spam -- https://master.php.net/note/delete/90775/spam Del: non-english -- https://master.php.net/note/delete/90775/non-english Del: in docs -- https://master.php.net/note/delete/90775/in+docs Del: other reasons-- https://master.php.net/note/delete/90775 Reject -- https://master.php.net/note/reject/90775 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#154381) next »