angular email regular expression validate email with domain in angular6

The solution for “angular email regular expression validate email with domain in angular6” can be found here. The following code will assist you in solving the problem.

validateEmail(email) {
const regularExpression = /^(([^<>()\[\]\\.,;:\[email protected]”]+(\.[^<>()\[\]\\.,;:\[email protected]”]+)*)|(“.+”))@((\[[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,}))$/;
return regularExpression.test(String(email).toLowerCase());
}[email protected]

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in