What is wrong with my code? I can't find the solution.
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,}))$/";
var email= document.getElementById("email").value;
if (re.test(email) == false) {
document.getElementById("email").focus();
return false;
}
The double quotes caused the problem, thank you! I cant vote up because of my reputation :-(