Thanks for sharing. This is a post I wrote way back in 2007 and, even though, as many have pointed out, the algorithm is very inefficient, it is still a good illustration of how powerful regular expressions are.
When I am explaining the basics of regular expressions to people, I always refer them to this post to make them realize that regular expressions are not only glorified search terms. In general, they are amazed :-)
RIP Atul Chitnis. Met him during a conference in Mauritius around 2002 and we had a great conversation about open source software in poor(er) countries.
How does reading on a 3" screen compare to reading to 6"? Personally, I had a Sony Clié a few years ago with a small screen (2.5" I guess) and I didn't have lots of problems reading technical docs from it. But then, they were mostly ASCII text and the Clié could reflow the text to fit the screen. Does the same thing happen on the iPhone or the Kindle?
Of course, we also know that there is still a long way to go before the conclusion.