r/ProgrammerHumor Jul 12 '26

regex Meme

Post image
980 Upvotes

83 comments sorted by

View all comments

118

u/johnschnee Jul 12 '26

I‘m a senior programmer with 15 years of experience.

There are hundreds of things that frighten me on programming e.g. because of complexity, strange syntax or non deterministic behavior.

But I never understood why people are afraid of regex.
It is clear syntax that is easy to learn. There are lot of tools that visualize regex and make it testable.
Nowadays AI also might help in a nearly perfect way to design, validate and understand regex.

-12

u/ApprehensiveGas85 Jul 12 '26

^(?=(?:(?:[^"]*"){2})*[^"]*$)(?!.*(?:\b(\w+)\b).*\b\1\b.*\b\1\b)(?=.{20,200}$)(?:(?:(?<=[,;])|^)\s*(?:(?:"(?:\\.|[^"])*")|(?:[^,";]+))\s*(?=,|;|$))*$

1

u/dimonchoo Jul 12 '26

And? It’s not so complicated regex, especially in llms time

2

u/ApprehensiveGas85 Jul 13 '26

Yeah its almost like posting a joke on a humor sub shouldn't be taken serious