Another Take

Just thought I'd give you another take. The regexp is quite similar to the one @licyeus used.

Thanks again for sharing your code, @ceejaay. That was awesome.