Posted By

flatearthcomms on 07/21/15


Tagged

form email validate


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

kclewis0614
JeffSFO


Verify email address


 / Published in: JavaScript
 

Allows for forname.o'[email protected]

  1. function validateEmail(email) {
  2. var re = /^(([^<>()[\]\\.,;:\[email protected]\"]+(\.[^<>()[\]\\.,;:\[email protected]\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
  3. var rslt = re.test(email);
  4. return rslt;
  5. }

Report this snippet  

You need to login to post a comment.