this post was submitted on 05 Mar 2025
1664 points (98.9% liked)

Programmer Humor

24347 readers
1482 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
[–] [email protected] 115 points 3 months ago* (last edited 3 months ago) (22 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.

[–] [email protected] 32 points 3 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

[–] [email protected] 11 points 3 months ago

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

load more comments (20 replies)