Good catch!
When I'm playing with regex, I use GSkinners test suite (as I'm without a doubt, no wizard)
The regex fail in the OP was very much glassed over by me as I knew it wasn't doing anything that was getting me towards my end goal.
http://gskinner.com/RegExr/
-- Libra