News for hackers. Stuff that matters.
Re:Your job is to deliver code you have proven to work by evilduck on Thursday December 18, 2025 @10:18AM (#46313608)
I would bet in most organizations you can find a copy-pasted version of the top SO answer for email regex in their language of choice, and if you chase down the original commit author they couldn't explain how it works.
Re:Your job is to deliver code you have proven to work by 1-more on Thursday December 18, 2025 @11:43AM (#46315038)
I think it's impossible to actually write an email regex because addresses can have arbitrarily deeply nested escaping. I may have that wrong. I'd hope that regex would be .+@.+ and that's it (watch me get Cunninghammed because there is some valid address wherein those plusses should be stars).
Re:Your job is to deliver code you have proven to work by notpachet on Thursday December 18, 2025 @07:20PM (#46320754)
TIL Cunningham's Law[0]. I knew about that phenomenon but not the proper name. Thanks!

[0] https://en.wikipedia.org/wiki/Ward_Cunningham#Law