[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 — CMake 3.23.0-rc3 Documentation
cmake.org › cmake › helpstring (REGEX REPLACE <regular_expression> <replacement_expression> <output_variable> <input> [<input>...]) Match the <regular_expression> as many times as possible and substitute the <replacement_expression> for the match in the output. All <input> arguments are concatenated before matching.
regex - CMAKE if regexp match - Stack Overflow
stackoverflow.com › questions › 71006140Feb 06, 2022 · 1 CMake does not support character classes in regular expressions; you need to use the character group with the same meaning. Furthermore I'm not sure why you add a capturing group that matches only a single string. if ($ {exename} MATCHES "^ (xxx) [A-Za-z0-9_]+") ... Note that this matches strings starting with xxx, not strings with xxx anywhere.