Const
Regular expression to validate the local part of an email address.
This pattern ensures:
_ % + -
.
⚠️ Note: This regex only validates the part before the "@" symbol.
EMAIL_LOCAL_PART_REGEX.test("user.name"); // trueEMAIL_LOCAL_PART_REGEX.test(".username"); // falseEMAIL_LOCAL_PART_REGEX.test("user..name"); // false Copy
EMAIL_LOCAL_PART_REGEX.test("user.name"); // trueEMAIL_LOCAL_PART_REGEX.test(".username"); // falseEMAIL_LOCAL_PART_REGEX.test("user..name"); // false
Regular expression to validate the local part of an email address.
This pattern ensures:
_ % + -.) as separators between segments⚠️ Note: This regex only validates the part before the "@" symbol.