summaryrefslogtreecommitdiffstats
path: root/Source/cmStringCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-03-19 17:13:32 (GMT)
committerBrad King <brad.king@kitware.com>2013-03-19 17:14:22 (GMT)
commit763a6dcd335e60dfecca6b7f3f823106a3877cf6 (patch)
tree89d02c9cf932ef4dfbf0f58336d49e7f36787734 /Source/cmStringCommand.h
parent5dfa6240ebbfcfd20f0be8b550d8c39b13cde78b (diff)
downloadCMake-763a6dcd335e60dfecca6b7f3f823106a3877cf6.zip
CMake-763a6dcd335e60dfecca6b7f3f823106a3877cf6.tar.gz
CMake-763a6dcd335e60dfecca6b7f3f823106a3877cf6.tar.bz2
string: Fix regex documentation of '^' and '$' (#14028)
They match at the beginning and end of the input, not by line. Reported-by: Martin Perzl <martin.perzl@web.de>
Diffstat (limited to 'Source/cmStringCommand.h')
-rw-r--r--Source/cmStringCommand.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmStringCommand.h b/Source/cmStringCommand.h
index 30dbaa5..802e0b8 100644
--- a/Source/cmStringCommand.h
+++ b/Source/cmStringCommand.h
@@ -129,8 +129,8 @@ public:
"will search for the position of the last occurrence of the "
"specified substring.\n"
"The following characters have special meaning in regular expressions:\n"
- " ^ Matches at beginning of a line\n"
- " $ Matches at end of a line\n"
+ " ^ Matches at beginning of input\n"
+ " $ Matches at end of input\n"
" . Matches any single character\n"
" [ ] Matches any character(s) inside the brackets\n"
" [^ ] Matches any character(s) not inside the brackets\n"