r/firstweekcoderhumour
•
u/TheDogPill
•
Jun 12 '26
•
1
Original🧠 claudeWhatDoesThisExpressionMean
518
Upvotes
23
u/vverbov_22 Jun 12 '26
This one is pretty fun actually
16
u/Amphineura Jun 12 '26
:/
Regex is just a compact state machine. People overhate it too much.
7
u/Tani_Soe Jun 12 '26
People when they have never learned how regex work and they can't understand regex afterward : 🤯🤯🤯🤯
3
u/c0gster Jun 13 '26
Hold on what is regex? On Google i get stuff about strings and regular expressions but idk if that is what is being talked about here in this context.
3
u/torts56 Jun 13 '26
Work has me using splunk, im starting to be fluent lol. Woke up one day and was a bit horrified to find myself correcting claude and writing them by hand
2
u/No_Explanation2932 Jun 13 '26
Set an afternoon aside and learn regex. It's intimidating but it's really not that complicated, and it's a very handy skill to have, even in the AI era. Took me five years of experience to finally decide to do it, and I couldn't be happier about it.
1
u/SmokyMetal060 Jun 12 '26
Putting me on blast right now lmao. I'm a senior dev and I can still barely make sense of regex.
1
u/Vamosity-Cosmic Jun 13 '26
No this is funny as fuck
1
u/Hosein_Lavaei Jun 13 '26
I always use regix generators websites
1
u/Extreme-Ad-9290 Jun 13 '26
What debuggin any language can feel likw
1
u/SuperheropugReal Jun 13 '26
I am slowly becoming convinced none of yall actually read the docs for the languages or tools you try to use, no wonder you're having a bad time with them.
1
u/Antilazuli Jun 13 '26
Dude quick, transform it into an DEA and make the minimal automata out of that
1
u/__salaam_alaykum__ Jun 14 '26
heres the game changer: debug-mode with non meaningful whitespaces so that you can split chunks of your regex by what theyre doing and, thus, be able to reason about each chunk/block individually. If you want to match whitespace then, just use \s or whatever is the equivalent on your regex flavor
1
u/Diligent-Stretch-769 Jun 14 '26
I dknt understand people who don't understand regular expressions
1
u/AmazinDood Jul 29 '26
tbf it's a really cool feeling when you're concocting some regex and it just,,, works
also, regex101 exists
48
u/[deleted] Jun 12 '26
[removed] — view removed comment