I am using the following regex in a js
^[a-zA-Z0-9._+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$
This validates email in subdomain (ex: [email protected]
)
Unfortunately a double dot is also validated as true, such as
[email protected]
[email protected]
I understand the part @[a-zA-Z0-9.-]
is to be modified but kinda struck. What is the best way to proceed.
TIA