Answers for "C# validate email regex"


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

regex for email c#

Regex regex = new Regex(@"^([\w\.\-]+)@([\w\-]+)((\.(\w){2,3})+)$");
Posted by: Guest on May-07-2021

regular expression for email in c#

Posted by: Guest on August-30-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language