Z\l$1Z is not "Z\l$1Z". Please reread what I wrote.
In reply to Re^7: Interpolate into replacement with s//? by ikegami in thread Interpolate into replacement with s//? by philkime