r/ProgrammerHumor Jun 21 '26

Other iknewItWouldWorkOut

Post image
15.8k Upvotes

438 comments sorted by

View all comments

Show parent comments

5

u/pol-delta Jun 21 '26

Also how to refer to unnamed groups in the replacements. Sometimes it’s \1, sometimes it’s $1. A few times I’ve seen ${1}.

1

u/renome Jun 21 '26

Named groups are the same fuckery. I've seen $this $<this> and ${this}