Revision: 63119
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 9, 2013 23:33 by dreamstarter
Initial Code
function checkEmail(email) { var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; if (!reg.test(email)) return false; return true; }
Initial URL
Initial Description
Use a regex to check the email address input
Initial Title
email validation
Initial Tags
regex, email, javascript, validation
Initial Language
JavaScript