Return to Snippet

Revision: 43723
at March 29, 2011 23:20 by dbugger


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

Revision: 43722
at March 29, 2011 23:19 by dbugger


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

Revision: 43721
at March 29, 2011 23:18 by dbugger


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

Initial URL

                                

Initial Description

                                

Initial Title
Email validation

Initial Tags
javascript

Initial Language
JavaScript