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: myname@google.co.in
)
Unfortunately a double dot is also validated as true, such as
myname@..in
myname@domain..in
I understand the part @[a-zA-Z0-9.-]
is to be modified but kinda struck. What is the best way to proceed.
TIA