in reply to Regexp for oneliner conversion

You might also be interested in Quote and Quote like Operators. Using those would allow you to have the same quoting constructs inside the code both on Unix and Windows, only the quotes around the code changing depending on o/s. I have got into the habit of using these instead of normal quotes, my answer to chromatic's query gives the background.