It blows my mind that there is no simple regex to validate email.

There are websites for the sole purpose of offering a solution, like emailregex.com and threads upon threads on StackOverflow and forums of debates around the topic and still each website will randomly refuse valid emails or accept non valid ones.

Follow

@hugo I’m usually posting this in any thread discussing regexp to validate email addresses: davidcel.is/posts/stop-validat

@moritzheiber I am pretty close to using something similar to: '/.+@.+\..+/i.' 😋

Sign in to participate in the conversation
Mastodon

The original server operated by the Mastodon gGmbH non-profit