The goal of my regex
is to validate an mail address that may or may not exist according to the following parameters:
- does not contain characters other than letters, numbers, underscores, and @
- only 1 @
- before @, there must be between 3 and 8 characters
- after the arroba, there should be a total of 4 to 12 characters, with exactly one point.
The expression I have so far allows me to control that there are between 4 and 12 characters before the period after the arroba, but I can not modify it so that it fulfills the requested requirements.
The expression is:
^ (? = [^ @] {3,8} @) ([\ w.-] [a-zA-Z0-9 _] @ (? =. {4,12}. [^ .] $) [\ w -] [a-zA-Z0-9]. [a-zA-Z] [a-zA-Z] [a-zA-Z ]) $