mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 13:19:51 -05:00
string: Allow references to unmatched groups in REGEX REPLACE
References to unmatched groups will be replaced with empty strings. Issue: #26629 Fixes: #19012
This commit is contained in:
@@ -122,6 +122,9 @@ Search and Replace With Regular Expressions
|
||||
string instead of the beginning of each repeated search.
|
||||
See policy :policy:`CMP0186`.
|
||||
|
||||
The replacement expression may contain references to subexpressions that
|
||||
didn't match anything. Previously, such references triggered an error.
|
||||
|
||||
.. _`Regex Specification`:
|
||||
|
||||
Regex Specification
|
||||
|
||||
Reference in New Issue
Block a user