Answer the question
In order to leave comments, you need to log in
Is the code correct?
Why doesn't the following code work? Does not respond to condition.
if (string3.search(/\w{2,}@.\w{2,}.\w{2,}/) == -1 && string3.search(/\W/) != -1 ){
alert("Электронная почта введена не верно!");
return false;
}
if (string3.search(/\w{2,}@.\w{2,}.\w{2,}/) == -1) {
alert("Электронная почта введена не верно!");
return false;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question