From 763a6dcd335e60dfecca6b7f3f823106a3877cf6 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 19 Mar 2013 13:13:32 -0400 Subject: [PATCH] string: Fix regex documentation of '^' and '$' (#14028) They match at the beginning and end of the input, not by line. Reported-by: Martin Perzl --- Source/cmStringCommand.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmStringCommand.h b/Source/cmStringCommand.h index 30dbaa5ac..802e0b850 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"