That probably lead to this exchange.
Stack Overflow is useful, but…it needs more than a little parsing for useful answers.
It’s easier to Google “email regex [language]” and copy the first result from stack overflow.
That probably lead to this exchange.
Stack Overflow is useful, but…it needs more than a little parsing for useful answers.
I know (hope) you’re being facetious, because the objectively best way to do email validation is to send a fuckin email to the provided address.
To be valid, the email just has to match [anything@anything]. ,🙃@localhost can be perfect legal if localhost supports utf8 in usernames.
Or implement a validator from a known good library.
vithigar@lemmy.ca 11 months ago
Definitely a timesaver. Much faster to get incorrect email validation that way then to try building it yourself.
Archer@lemmy.world 11 months ago
Skip the building step and go straight to pulling your hair out over why it’s not working! Efficiency!