Initially I had that.
I was using RegexPal to test it.
As it turns out it doesn't properly interpret the expression.
Works like a charm in PHP

Thanks