this post was submitted on 05 Mar 2025
22 points (95.8% liked)

Programmer Humor

24980 readers
1738 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] conditional_soup@lemm.ee 5 points 4 months ago* (last edited 4 months ago) (3 children)

Regex

Edit: to everyone who responded, I use regex infrequently enough that the knowledge never really crystalizes. By the time I need it for this one thing again, I haven't touched it in like a year.

[–] Kissaki@programming.dev 1 points 4 months ago (1 children)

You always forget regex syntax?

I've always found it simple to understand and remember. Even over many years and decades, I've never had issues reading or writing simple regex syntax (excluding the flags and shorthands) even after long regex breaks.

[–] Akito@lemmy.zip 1 points 4 months ago

It's not about the syntax itself, it's about which syntax to use. There are different ones and remembering which one is for which language is tough.

[–] kameecoding@lemmy.world 1 points 4 months ago (1 children)

Most of regex is pretty basic and easy to learn, it's the look ahead and look behind that are the killers imo

[–] PoolloverNathan@programming.dev 1 points 4 months ago

(?=) for positive lookahead and (?!) for negative lookahead. Stick a < in the middle for lookbehind.

[–] 9point6@lemmy.world 1 points 4 months ago

You get used to it, I don't even see the code—I just see: group... pattern... read-ahead...