Posted By

silentpro on 01/18/11


Tagged

regex email php textmate validation


Versions (?)

Check for Valid Email


 / Published in: Other
 

  1. function is_valid_email($email)
  2. {
  3. return (pregmatch("/[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.