using perl on the command line, I want to change a string that includes single quotes to something else.
Like i want to replace id='dog' to id='cat' hello. I thought I could use
but it really doesn't like having a single quote within the search/replace section. What am I missing?Code:'s/dog\'/cat\' hello/g;'


LinkBack URL
About LinkBacks
Reply With Quote