> I'm guessing you want it to replace all " with \", in which case > you would want to escape the \, i.e. s/"/\\"/g Yeah, I feel silly, that's just it. And one of these days I'll tell you everything I want to do, I promise.