@Heidi It's an email address parser in regex, and it's wrong. There are domains where the TLD can be more than 4 characters, such as .exchange or .social

@rallias @Heidi AFAIK it is impossible to write a regex that validates email addresses with total accuracy?

(The one on my web site is several times as long as that. I nicked it from somewhere, I haven't a clue what it means. I get about one complaint a decade from people whose email addresses fail the regex.)

Follow

@TimWardCam @rallias @Heidi there's one in the RFC and it's huge. You're better of saying just a two item @ separated list, and the second item being at least 2 item . separated list

@falken @TimWardCam @rallias @Heidi Hate to say it, but there's no limit on the amount of @ characters in an email address.

@ives @TimWardCam @rallias @Heidi true :) But unless you have very unusual users, simple list checks followed by the inevitable "click link in email" is *fine*

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.