summaryrefslogtreecommitdiffstats
path: root/Help/command
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-09-14 14:37:59 (GMT)
committerBrad King <brad.king@kitware.com>2015-09-14 14:37:59 (GMT)
commit3809150a3895c5e15793a6801ca1bd0eb1ee61b1 (patch)
tree2b9b067fc9a39ef96b31618e03cc29cfdcd3fc0b /Help/command
parent5f2c47c44c984e58887ac8c62f6319f75128cb13 (diff)
downloadCMake-3809150a3895c5e15793a6801ca1bd0eb1ee61b1.zip
CMake-3809150a3895c5e15793a6801ca1bd0eb1ee61b1.tar.gz
CMake-3809150a3895c5e15793a6801ca1bd0eb1ee61b1.tar.bz2
Help: Document string(REGEX) input concatentation (#15742)
These commands concatenate all their input before matching. Document this behavior.
Diffstat (limited to 'Help/command')
-rw-r--r--Help/command/string.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Help/command/string.rst b/Help/command/string.rst
index 4d6c0d0..0361c74 100644
--- a/Help/command/string.rst
+++ b/Help/command/string.rst
@@ -46,6 +46,7 @@ REGEX MATCH
<output variable> <input> [<input>...])
Match the regular expression once and store the match in the output variable.
+All ``<input>`` arguments are concatenated before matching.
REGEX MATCHALL
""""""""""""""
@@ -57,6 +58,7 @@ REGEX MATCHALL
Match the regular expression as many times as possible and store the matches
in the output variable as a list.
+All ``<input>`` arguments are concatenated before matching.
REGEX REPLACE
"""""""""""""
@@ -69,6 +71,7 @@ REGEX REPLACE
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.
The replace expression may refer to paren-delimited subexpressions of the
match using ``\1``, ``\2``, ..., ``\9``. Note that two backslashes (``\\1``)