Improve email validation
Closed this issue · 1 comments
Currently, when the email contains @ + 1 char, it will validate, but the proper way is to check :
-
Local Part: This is the part of the email address that appears before the "@" symbol. It can consist of a combination of letters (both uppercase and lowercase), digits, and certain special characters such as periods (.), underscores (_), percent signs (%), plus signs (+), and hyphens (-).
-
The "@" Symbol: This symbol is used to separate the local part from the domain part of the email address.
-
Domain Part: This is the part of the email address that appears after the "@" symbol and before the top-level domain (TLD). It typically consists of one or more domain segments separated by periods (e.g., "example.com" or "subdomain.example.co.uk").
-
Top-Level Domain (TLD): The TLD is the last part of the domain, such as ".com," ".org," ".net," or a country code TLD like ".uk" or ".ca." TLDs usually consist of letters only, and there must be at least two letters in the TLD.
I will solve it