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 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.


@hugo I’m usually posting this in any thread discussing regexp to validate email addresses:

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

Sign in to participate in the conversation

The original server operated by the Mastodon gGmbH non-profit