I have the following string in a variable &quot;C:\path\to\foo&quot;<br><br>I want to do something like the following:<br><br>string(REGEX REPLACE &quot;\\&quot; &quot;\\\\&quot; 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&#39;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>