I have the following string in a variable "C:\path\to\foo"<br><br>I want to do something like the following:<br><br>string(REGEX REPLACE "\\" "\\\\" OUTPUT_VAR ${INPUT_VAR})<br><br>where INPUT_VAR contains the original string.<br>
<br>I want the result to be:<br><br>C:\\path\\to\\foo<br><br>I'm just not seeing how to make this regular expression work. If you have any suggestions I would appreciate the help!<br><br>Thanks in advance,<br><br>Steve<br>