JS Utils Kit
    Preparing search index...

    Variable EMAIL_DOMAIN_REGEXConst

    EMAIL_DOMAIN_REGEX: RegExp = ...

    Regular expression to validate the domain part of an email address.

    This pattern ensures:

    • No consecutive dots
    • Each label:
      • Is 1–63 characters long
      • Contains only alphanumeric characters or hyphens
      • Does not start or end with a hyphen
    • Domain contains at least one dot
    • Top-level domain (TLD) has at least 2 alphabetic characters

    ⚠️ Note: This regex only validates the part after the "@" symbol.

    EMAIL_DOMAIN_REGEX.test("example.com"); // true
    EMAIL_DOMAIN_REGEX.test("sub.domain.co.in"); // true
    EMAIL_DOMAIN_REGEX.test("-example.com"); // false
    EMAIL_DOMAIN_REGEX.test("example..com"); // false