Const
Regular expression to validate the domain part of an email address.
This pattern ensures:
⚠️ Note: This regex only validates the part after the "@" symbol.
EMAIL_DOMAIN_REGEX.test("example.com"); // trueEMAIL_DOMAIN_REGEX.test("sub.domain.co.in"); // trueEMAIL_DOMAIN_REGEX.test("-example.com"); // falseEMAIL_DOMAIN_REGEX.test("example..com"); // false Copy
EMAIL_DOMAIN_REGEX.test("example.com"); // trueEMAIL_DOMAIN_REGEX.test("sub.domain.co.in"); // trueEMAIL_DOMAIN_REGEX.test("-example.com"); // falseEMAIL_DOMAIN_REGEX.test("example..com"); // false
Regular expression to validate the domain part of an email address.
This pattern ensures:
⚠️ Note: This regex only validates the part after the "@" symbol.