note 96935 added to function.preg-match
| From: | eric at devotia dot com | Date: | Tue, 23 Mar 2010 22:12:38 +0000 |
| Subject: | note 96935 added to function.preg-match | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-167334@lists.php.net to get a copy of this message | ||
preg_match('/^[^@]+@[a-z0-9_-][\.\w]+\.[a-z0-9]+$/i', $app_data['email'])
updated expression below to allow for subdomains:
username@subdomain.subdomain.domain.tld
now validates.
----
Server IP: 69.147.83.197
Probable Submitter: 204.64.50.78 (proxied: 204.64.28.5)
----
Manual Page -- http://www.php.net/manual/en/function.preg-match.php
Edit -- https://master.php.net/note/edit/96935
Del: integrated -- https://master.php.net/note/delete/96935/integrated
Del: useless -- https://master.php.net/note/delete/96935/useless
Del: bad code -- https://master.php.net/note/delete/96935/bad+code
Del: spam -- https://master.php.net/note/delete/96935/spam
Del: non-english -- https://master.php.net/note/delete/96935/non-english
Del: in docs -- https://master.php.net/note/delete/96935/in+docs
Del: other reasons-- https://master.php.net/note/delete/96935
Reject -- https://master.php.net/note/reject/96935
Search -- https://master.php.net/manage/user-notes.php