this post was submitted on 14 Feb 2025
134 points (95.9% liked)

Programmer Humor

33705 readers
355 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
top 11 comments
sorted by: hot top controversial new old
[–] [email protected] 14 points 2 weeks ago (1 children)
[–] [email protected] 8 points 2 weeks 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 2 weeks ago* (last edited 2 weeks ago) (1 children)

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

[–] [email protected] 7 points 2 weeks ago* (last edited 2 weeks ago)

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

Insert obligatory \\\\\\\\Xzibit

[–] [email protected] 4 points 2 weeks ago* (last edited 2 weeks ago)

Now you’ve got 𒐂 problems.

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

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

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

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

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

I think I understand half of that without looking it up

[–] [email protected] 3 points 2 weeks ago

Warlock! Burn them!

[–] [email protected] 2 points 2 weeks ago

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

[–] [email protected] 4 points 2 weeks ago

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