summaryrefslogtreecommitdiffstats
path: root/Source/cmStringCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-05-03 14:10:57 (GMT)
committerBrad King <brad.king@kitware.com>2004-05-03 14:10:57 (GMT)
commitc93d43b09e9ff216708a0b9eba7f666376e0c06b (patch)
tree12282b238f01087404b43d49a8be1c2759f999a1 /Source/cmStringCommand.h
parent781a1eaaf9fbb103a750194ff0fd7fde45db6d8a (diff)
downloadCMake-c93d43b09e9ff216708a0b9eba7f666376e0c06b.zip
CMake-c93d43b09e9ff216708a0b9eba7f666376e0c06b.tar.gz
CMake-c93d43b09e9ff216708a0b9eba7f666376e0c06b.tar.bz2
ENH: Documented use of \1 syntax in replace expression.
Diffstat (limited to 'Source/cmStringCommand.h')
-rw-r--r--Source/cmStringCommand.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmStringCommand.h b/Source/cmStringCommand.h
index ed28b4b..d392a3d 100644
--- a/Source/cmStringCommand.h
+++ b/Source/cmStringCommand.h
@@ -92,7 +92,10 @@ public:
"possible and store the matches in the output variable as a list.\n"
"REGEX REPLACE will match the regular expression as many times as "
"possible and substitute the replacement expression for the match "
- "in the output.\n"
+ "in the output. The replace expression may refer to paren-delimited "
+ "subexpressions of the match using \\1, \\2, ..., \\9. Note that "
+ "two backslashes (\\\\1) are required in CMake code to get a "
+ "backslash through argument parsing.\n"
"COMPARE EQUAL/NOTEQUAL/LESS/GREATER will compare the strings and "
"store true or false in the output variable.\n"
"ASCII will convert all numbers into corresponding ASCII characters.\n"