Return to Snippet

Revision: 36908
at November 30, 2010 06:02 by virgil


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

Initial URL

                                

Initial Description

                                

Initial Title
Email validation

Initial Tags

                                

Initial Language
JavaScript