[CMake] string REGEX question
Steven Wilson
steven.wesley.wilson at gmail.com
Fri Nov 20 20:12:58 EST 2009
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091120/abf0ed72/attachment.htm>
More information about the CMake
mailing list