4 ms·
Things you should never do: Make your own load balancer software Make firewall software Make a date parsing library Attempt to verify an email with a regula
by jedberg 1y ago
Things you should never do:
Make your own load balancer software
Make firewall software
Make a date parsing library
Attempt to verify an email with a regular expression.
- 9rx 1y agoRoll your own encryption Accept people's names Anything
- the__alchemist 1y agoIs parsing HTML with regexes Ok?
- dimaaan 1y agoNo. See https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags https://stackoverflow.com/questions/1732348/regex-match-open...
- 9dev 1y ago> Attempt to verify an email with a regular expression. .+@.+ That one always seemed sufficient for me, every issue after that is the users problem
- jedberg 1y agoObviously there is a bit of nuance here, but the best rule of thumb is use a regex and then warn the user that it doesn't look valid but still accept it if it doesn't pass, and then send an email to verify it.
- deleted 1y ago[deleted]
- 1718627440 1y agoExcept email addresses don't need to have an "@".