Greetings,
I think your problem is with interpolation... have a look at
reinterpolation of regexp (and strings?) or
Regex Substitution Evaluations to see similar situations.
-InjunJoel
"I do not feel obliged to believe that the same God who endowed us with sense, reason and intellect has intended us to forego their use." -Galileo