I have a RegEx here and I need to know if it will 100% omit any bad email addresses but I do not understand them fully so need to call on the community experts.
The string is as follows:
^[_a-zA-Z0-9-]+(.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(.[a-zA-Z0-9-]+)*(.[a-zA-Z]{2,3})$
Thank you in advance!
Piece by piece
(up until now it will accept for example
my.name12ormy.name12.surname34)So we have an email address, where you can’t have
something.@somethingelse.ss(no “dangling” dot before the@) or.something@somethingelse.ss(no beginning dot). The domain must start with a letter and can’t have a dot just before the first level domain (.com/.uk/??), so nosomething@x..com. The first-level domain must have 2 or 3 letters (no numbers)There is an error, the
.(dot) must be escaped, so it should be\.. Depending on the language, the\must be escaped in a string (so it could be\\.)