string — CMake 3.23.0-rc3 Documentation
cmake.org › cmake › helpMatches a pattern on either side of the | () Saves a matched subexpression, which can be referenced in the REGEX REPLACE operation. New in version 3.9: All regular expression-related commands, including e.g. if (MATCHES), save subgroup matches in the variables CMAKE_MATCH_<n> for <n> 0..9.