xkcd updates every Monday, Wednesday, and Friday.
Permanent link to this comic: http://xkcd.com/1313/
Image URL (for hotlinking/embedding): http://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.}}
Warning: this comic occasionally contains strong language (which may be unsuitable for children), unusual humor (which may be unsuitable for adults), and advanced mathematics (which may be unsuitable for liberal-arts majors).
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.