January 6, 2014
#1313: Regex Golf
[[A woman sits at a laptop, leaning back over her chair to address a figure.]]
Woman: You try to matchone one group but not the other.
M | [TN]|B
matches Star Wars subtitles but not Star Trek.
[[We zoom to just show the woman, looking at her screen.]]
Woman: So I wrote a program that plays regex golf with arbitrary lists…
Figure: Uh oh…
[[We zoom back out. The figure is facepalming. The woman is typing.]]
Woman: …but I lost my code, so I’m grepping for files that look like regex golf solvers.
[[We zoom back in.]]
… And beyond:
Woman: Really, this is all
Figure: Now you have infinite problems.
Woman: No, I had those already.
matches the last names of elected US presidents but not their opponents.}}