12

Yes, a plus, i.e. `+`, is a fucking valid char for an email address.

Your online service is shit, you don't know your craft, and you should feel bad about yourself!

But you thought email is fucking simple, google for email validation regex and took copy pasted the first fucking find from some random blog that validates anything but an actual fucking valid email addresses, didn't you!?

(Funfact, the plus sign allow to create email aliases in some free mailer services. GMail for instance. That's why I l like using emails like my.actual.mail+I_KNOW_WHY_YOU_ARE_SENDING_SPAM@gmail.com as my registration email. Also, brute-force that login email.)

Comments
  • 5
    I host myself and also use the + for automatic tagging and organizing in folders. What bothers me more however is the following:
    My first name is Kim and some company actually registered .kim is tld. Good for me, except for the 5% who think they know better and say something.kim is not a valid address. Drives me nuts.
    Also forget mail regexes. There is not regex that can validate an email address. The only real check is .Contains('@')
    That's it.
  • 1
    .+?@.+?\..+

    Maybe

    Probs still not fully representative
  • 2
    @querellaMMXII in THEORY any tld is fqdn that could host services too
    One could set up a MX record and a corresponding A on a tld and send mail to eg. hello@com
    No point required in the right hand part of the address. This shortens your regex to .+?@.+? Which is basically contains @
    The point is that some want to filter out some symbols etc. from mail addresses. This is bullshit because most of the utf 8 characters are allowed in it
Add Comment