Answers for "regular expression test validation after complete mail entered"

8

email regex javascript

/* Answer to: "email regex javascript" */

ValidateEmail("[email protected]"); // Must be a string

function ValidateEmail(email) {
	var emailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(String(email).toLowerCase());
	if (email.match(emailformat)) {
    	alert("Nice Email!")
      	return true;
    };
    alert("That's not an email?!")
    return (false);
};
Posted by: Guest on March-08-2020
0

email validation regex

python
r"(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)"
Posted by: Guest on June-30-2020

Code answers related to "regular expression test validation after complete mail entered"

Code answers related to "Javascript"

Browse Popular Code Answers by Language