[CMake] STRING REGEX MATCH
cmake.org › pipermail › cmake[CMake] STRING REGEX MATCH Brandon J. Van Every bvanevery at gmail.com Fri Mar 31 00:39:47 EST 2006. Previous message: [CMake] still issues with environment variables Next message: [CMake] STRING REGEX MATCH Messages sorted by:
string
http://man.hubwiz.com › commandRegular Expressions string(REGEX MATCH <match-regex> <out-var> <input>. ... Note that two backslashes ( \\1 ) are required in CMake code to get a backslash ...
string — CMake 3.23.0-rc3 Documentation
cmake.org › cmake › helpThis means that the regular expression ^ab+d$ matches abbd but not ababd, and the regular expression ^(ab|cd)$ matches ab but not abd. CMake language Escape Sequences such as \t, \r, , and \\ may be used to construct literal tabs, carriage returns, newlines, and backslashes (respectively) to pass in a regex. For example: