JS Utils Kit
    Preparing search index...

    Variable EMAIL_LOCAL_PART_REGEXConst

    EMAIL_LOCAL_PART_REGEX: RegExp = ...

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

    This pattern ensures:

    • No leading dot
    • No consecutive dots
    • Allows alphanumeric characters and _ % + -
    • Allows dots (.) as separators between segments
    • No trailing dot

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

    EMAIL_LOCAL_PART_REGEX.test("user.name"); // true
    EMAIL_LOCAL_PART_REGEX.test(".username"); // false
    EMAIL_LOCAL_PART_REGEX.test("user..name"); // false