Posted By

desmond54 on 02/14/10


Tagged

javascript


Versions (?)

Validate Email


 / Published in: JavaScript
 

  1. function validateEmail(email){
  2. var ptrn = /^[\w](([_\.-]?[\w]+)*)@([\w]+)(([\.-]?[\w]+)*)\.([A-Za-z]{2,})$/;
  3. return ptrn.test(email);
  4. }

Report this snippet  

You need to login to post a comment.