Posted By

wbowers on 02/28/08


Tagged

regex email php textmate method function validation


Versions (?)

PHP - is_valid_email


 / Published in: PHP
 

  1. function is_valid_email($email)
  2. {
  3. return preg_match("/[a-zA-Z0-9_-.+]+@[a-zA-Z0-9_-.]+.[a-zA-Z]+/", $email) > 0;
  4. }

Report this snippet  

You need to login to post a comment.