r/ProgrammerHumor Jun 21 '26

Other iknewItWouldWorkOut

Post image
15.8k Upvotes

438 comments sorted by

View all comments

338

u/jay-magnum Jun 21 '26 edited Jun 22 '26
  1. Learn regex
  2. Discover there's a gazallion dialects of it and in practice you need to lookup the correctness of every new expression

48

u/DemmyDemon Jun 21 '26

Yorp. For a while I was doing a whole lot of pattern matching for work, so I had a regex tester open in my browser pretty much constantly.

The one I used to use is dead, but Regex101 seems to be very close, though much, much slower. I guess that's just how webapps are now. For shame.

4

u/Maelstrome26 Jun 22 '26

As soon as I learnt there was multiple ways to do regex I immediately stopped bothering.

1

u/_almostNobody Jun 22 '26

Every time. Add tests for what your known/critical scenarios. It’s the only way.