What If? 2: Additional Serious Scientific Answers to Absurd Hypothetical Questions
comes out 9/13. Preorder here!
Permanent link to this comic: https://xkcd.com/1313/
Image URL (for hotlinking/embedding): https://imgs.xkcd.com/comics/regex_golf.png
[[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.}}
Comics I enjoy:
Three Word Phrase
A Softer World
Perry Bible Fellowship
Junior Scientist Power Hour
This work is licensed under a
Creative Commons Attribution-NonCommercial 2.5 License.
This means you're free to copy and share these comics (but not to sell them). More details.