Email with pregmatch
| From: | Peter Lauri | Date: | Sun, 27 Aug 2006 13:35:47 +0000 |
| Subject: | Email with pregmatch | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-241141@lists.php.net to get a copy of this message | ||
Hi,
I am trying to check if an email is an email or not, so I used this that I
found on the internet:
preg_match("/^([a-zA-Z0-9])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)+/",
$_POST['email']);
BUT, it returns false with the email some.thing@domain.com
And ok for something@domain.com
What is the error here :)
/Peter