Never mind, I figured out the problem...

Thanks,

Steve

On Fri, Nov 20, 2009 at 6:12 PM, Steven Wilson <
steven.wesley.wil...@gmail.com> wrote:

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

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to