note 84060 deleted from function.preg-match by danbrown
| From: | danbrown@php.net | Date: | Wed, 03 Aug 2011 13:12:42 +0000 |
| Subject: | note 84060 deleted from function.preg-match by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-182157@lists.php.net to get a copy of this message | ||
Note Submitter: brferreira at grad dot ufsc dot br
----
Paperweight, this pattern worked fine for me (even for intranet adresses, like
"john@localhost"; and also for subdomain emails, like "john@foo.bar.com"):
'/([a-z0-9])([-a-z0-9._])+([a-z0-9])\@
([a-z0-9])([-a-z0-9_])+([a-z0-9])
(\.([a-z0-9])([-a-z0-9_-])([a-z0-9])+)*/i'
but, still, this won't replace the "activation link", that is the better way to check
if an e-mail is valid or not.