Perfect is the enemy of good.
If it is a string that has an @ sign, a dot and is at least six characters long, it's probably a valid email address.
a@b.cc
No need to go further than this. It's not worth the time.
If it is a string that has an @ sign, a dot and is at least six characters long, it's probably a valid email address.
a@b.cc
No need to go further than this. It's not worth the time.
dotless domains are going to be so rare in practice (unless your project has some niche use-case) that you can probably ignore them and call them invalid for the sake of simplicity.