Just use :
function isMail(email) { var re = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/; return re.test(email); }
Simple as that.
Just use :
function isMail(email) { var re = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/; return re.test(email); }
Simple as that.