in reply to nested replace

i'm not an expert but i think you need an e as regex modifier.

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.