Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Nitwix897yOn the same topic: forms that say your email is invalid because your (phone) keyboard automatically added a space at the end -
@Nitwix or forms that disallow the plus (+) in email addresses..
I use this to sort my Gmail inbox with rules.
Once I had a case where I could register using such an email but I could not log in because the + was invalid in the login form 🤔 -
The general rule I try to follow for emails is: "just accept anything which has at leas one @ and send a verification mail"
Related: https://youtube.com/watch/... -
@bootleg-dev Yeah I think .*@.*\..* (anything@anything.anything) is all the email validation you can reasonably do.
-
RakNoel6647yYeah! And fuck the password forms! Might just auto add some random numbers and Case-shuffle the letters for me while you're at it!
I mean; I'm not even going to remember it anyways with all your requirements, so feel free to do whatever you want, just don't bother me with it. -
duckWit55597yAll great comments.
@bootleg-dev that's what I do too. I don't even bother with regex for email addresses. Unless you know the exact domains or formats of email addresses you are looking for, I simply look for the '@' symbol and then do email verification through a click back in a sent email. -
Gnonpi7757yFor phone numbers, most websites don't accept the country calling codes (+33 for France for example). When living abroad it's so annoying! -
There's a library for this. Works real nice. I think the one I use is by another author but https://github.com/jackocnr/...
Related Rants

when your code is a mess but everything work out in the end
When you keep getting +1s on a rant you posted a month ago.
Go big or go home.
If you're going to bother to detect that my input is without hyphens, then you can certainly insert them for me too.
rant
lazy
forms