Return to Snippet

Revision: 33939
at October 15, 2010 02:06 by sandrews_06


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

Initial URL

                                

Initial Description

                                

Initial Title
Valid email in javascript

Initial Tags
email, javascript

Initial Language
JavaScript