functionvalidateEmail(email) {
var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
return re.test(email);
}
Posted by: Guest
on May-06-2020
1
javascript valid email adress
functionvalidateEmail(email) {
const re = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
return re.test(String(email).toLowerCase());
}
/// if you want create your regular expression then you can follow this site /////https://regex101.com///////<!DOCTYPE html><html><head><title></title></head><body><form method="post" action="">
Email:<input type="text" id="email" onkeyup="validation()"></form></body><script type="text/javascript">functionvalidation(){
var email=document.getElementById("email").value;///get id with value var emailpattern=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;////Regular expressionif(emailpattern.test(email))
{
document.getElementById("email").style.backgroundColor='yellow';
}
else
{
document.getElementById("email").style.backgroundColor='red'; }
}
</script></html>
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems
resetting your password contact us
Check Your Email and Click on the link sent to your email