how to check email using regex in js code example
Example: email regex javascript
/* JavaScript: validating email address */
isValidEmail("[email protected]"); // true
function isValidEmail(email) {
var emailRegex = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
return !!email && typeof email === 'string'
&& email.match(emailformat)};
};