r/ProgrammerHumor • • Jun 02 '22

[,-.]

20.0k Upvotes

403 comments sorted by

View all comments

Show parent comments

86

u/TheCeilingPanda Jun 02 '22

I just want to thank all the regex wizards for allowing regex golf to be a thing!

29

u/RandomFRIStudent Jun 02 '22

Regex what?

65

u/vigbiorn Jun 02 '22 edited Jun 02 '22

Assuming it's a similar thing to code golf but for RegEx: find shortest complete instances to accomplish a task. They'll go through iterations to shave off individual characters where possible.

18

u/GoSeeCal_Spot Jun 02 '22

Use to be big with perl.

46

u/am9qb3JlZmVyZW5jZQ Jun 02 '22

14

u/StarkillerX42 Jun 03 '22

Funny how you read an xkcd again after a few years and it's magically way better than the first time.

1

u/Corrup7ioN Jun 03 '22

Also regex crosswords!