CMake/Tests/RunCMake/string/RegexMultiMatchClear-stderr.txt
Nikita Nemkin 5d039f3be3 regex: Match ^ at most once in repeated searches
When doing successive matches, track the input start and current search
start positions separately to prevent the `^` anchor from matching in
the middle of the string.  Add policy CMP0186 to provide compatibility.

Issue: #26629
Fixes: #16899
2025-02-13 20:00:02 +05:00

13 lines
328 B
Plaintext

^matches: Some::
results from: string\(REGEX MATCHALL\)
CMAKE_MATCH_0: -->Some::<--
CMAKE_MATCH_1: -->Some<--
CMAKE_MATCH_2: -->::<--
CMAKE_MATCH_COUNT: -->2<--
replace: \[Some\]Scope
results from: string\(REGEX REPLACE\)
CMAKE_MATCH_0: -->Some::<--
CMAKE_MATCH_1: -->Some<--
CMAKE_MATCH_2: -->::<--
CMAKE_MATCH_COUNT: -->2<--$