Posted By

daipratt on 06/30/10


Tagged

email javascript validation


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

kele5240
hsousa
rgsoda
HomoLogicus


JavaScript email validation


 / Published in: JavaScript
 

URL: http://zoocha.com/what-we-do/development/

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

Report this snippet  

You need to login to post a comment.