MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/xly172/refactoring_just_working_solution/ipmmf4r
r/ProgrammerHumor • u/VitaminnCPP • Sep 23 '22
355 comments sorted by
View all comments
Show parent comments
26
I need a regex to validate email address.
(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/= ?^_`{|}~-]+)*|" (?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b \x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9] (?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\ [(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5] |2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\ x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c \x0e-\x7f])+)\])
Well that was intuitive.
18 u/git0ffmylawnm8 Sep 23 '22 ... aight imma head out chief this ain't it 11 u/[deleted] Sep 23 '22 You do know that the only sure-fire way of validating an email address is to try sending mail to it, right? 3 u/OrganicBid Sep 24 '22 I usually point people to https://medium.com/hackernoon/the-100-correct-way-to-validate-email-addresses-7c4818f24643 if they have to make a local validator. 2 u/VitaminnCPP Oct 11 '22 I need regex to validate regex that validates email.
18
... aight imma head out chief this ain't it
11
You do know that the only sure-fire way of validating an email address is to try sending mail to it, right?
3 u/OrganicBid Sep 24 '22 I usually point people to https://medium.com/hackernoon/the-100-correct-way-to-validate-email-addresses-7c4818f24643 if they have to make a local validator.
3
I usually point people to https://medium.com/hackernoon/the-100-correct-way-to-validate-email-addresses-7c4818f24643 if they have to make a local validator.
2
I need regex to validate regex that validates email.
26
u/akatherder Sep 23 '22
I need a regex to validate email address.
Well that was intuitive.