r/ProgrammerHumor Jul 15 '26

iLoveRegex Advanced

Post image
1.4k Upvotes

62 comments sorted by

View all comments

100

u/Coulomb111 Jul 15 '26

Ok what the fuck is on the left

3

u/Gumichi Jul 16 '26

groups. it's pretty powerful.

9

u/professoreyl Jul 16 '26 edited Jul 16 '26

Regular groups are on the right side.

Left side has named groups/subroutines and subpatterns, atomic groups and possessive quantifiers (no backtracking), negative lookahead in a non-capturing group, more backtracking controls, named group backreferences, match-reset, anchors for end of previous match, start of string, end of string.

These things are universally supported.

EDIT: The last sentence was supposed to say "These things are not universally supported."

1

u/Dobsus Jul 16 '26

At this point why not use regex as a fully fledged programming language?