this post was submitted on 14 Feb 2025
141 points (96.7% liked)

Programmer Humor

33584 readers
32 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 12 comments
sorted by: hot top controversial new old
[–] [email protected] 14 points 1 week ago (1 children)
[–] [email protected] 8 points 1 week ago

Yeah there are a few tools like that. I actually like this approach myself, you write it in a human readable form and then it gets compiled into a regex https://github.com/cmccomb/human_regex

[–] [email protected] 7 points 1 week ago* (last edited 1 week ago) (1 children)

Worse: Debugging regex that needs to be passed as a string\.

[–] [email protected] 7 points 1 week ago* (last edited 1 week ago)

I herd u liek escape characters so I escaped your escaped your escaped your escape characters.

Insert obligatory \\\\\\\\Xzibit

[–] [email protected] 4 points 1 week ago* (last edited 1 week ago)

Now you’ve got 𒐂 problems.

[–] [email protected] 3 points 1 week ago (2 children)

You don't use a regex generator/decoder? You actually tried to learn what that shit means??

[–] [email protected] 10 points 1 week ago (2 children)

Hey, there's something magical about knowing what a negative look behind zero length assertion is.

[–] [email protected] 3 points 1 week ago (1 children)

I think I understand half of that without looking it up

[–] [email protected] 3 points 1 week ago

Warlock! Burn them!

[–] [email protected] 2 points 1 week ago

Would-be regex compiler writers wince as they realise they can't just implement a FSA 😢

[–] [email protected] 4 points 1 week ago

Those regex crosswords ain't gonna solve themselves...

[–] [email protected] 1 points 1 week ago

Just learn some computer science and regexes will suddenly start making sense