3 ms·
You can have a one line regex that validates email that are correct according to RFC. However, most popular email services don't care about that. A lot of "vali
by 0x457 4y ago
You can have a one line regex that validates email that are correct according to RFC. However, most popular email services don't care about that. A lot of "valid" (as in active emails on email service like Gmail) are not "RFC valid", some "RFC valid" emails are not valid to many email services and MTAs.
Realistically, trying to validate email if you aren't in the business of providing an email service is a fool's errand that doesn't bring much to the table.
- necovek 4y agoNope, you can't. Email address are not defined with a regular language, so they provably can't be validated with a regular expression no matter how long.