Posted By

lfatr on 02/16/10


Tagged

email


Versions (?)

EMAIL VALIDATOR


 / Published in: PHP
 

URL: http://uk2.php.net/preg_match

  1. !preg_match('/^([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-]*[a-z0-9]+)*)\.[a-z]{2,6}$/', $_POST['user']['email']))

Report this snippet  

You need to login to post a comment.