I need a regex that will check (if email is like a@b.cc
:
email must have
@
and.
(must have both). I refer to the whole string that must contain @ and at least one dot.1st word of email must have 1+ char
the domain name between @ and . must be 1+ char
TLD must be 2+ char
I made regex like .+@.+\.
but it's not the one, I know. I am bad in regex as I use it so rarely.
Can anyone help me?