Posted By

dbugger on 03/29/11


Tagged

javascript


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

dondalos
nbegiter
notturnale


Email validation


 / Published in: JavaScript
 

  1. function is_email(email) {
  2. var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
  3. return reg.test(email);
  4. }

Report this snippet  

You need to login to post a comment.