Here’s a sample JavaScript function that shows how to validate an email address .
How to Validate Email Address in JavaScript ?
function ValidateEmail(email) { var result = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i; return result.test(email); }
Leave a Reply