In reply to Jan Klaverstijn.

I agree -- once you begin seeing solutions in "regex" -- it's difficult to stop seeing the possibilities. Pro tip: always pepper your regex code with comments. Deciphering even a moderately complex pattern later is challenging on its own.