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>
This commit is contained in:
Brad King 2013-03-19 13:13:32 -04:00
parent 5dfa6240eb
commit 763a6dcd33
1 changed files with 2 additions and 2 deletions

View File

@ -129,8 +129,8 @@ public:
"will search for the position of the last occurrence of the " "will search for the position of the last occurrence of the "
"specified substring.\n" "specified substring.\n"
"The following characters have special meaning in regular expressions:\n" "The following characters have special meaning in regular expressions:\n"
" ^ Matches at beginning of a line\n" " ^ Matches at beginning of input\n"
" $ Matches at end of a line\n" " $ Matches at end of input\n"
" . Matches any single character\n" " . Matches any single character\n"
" [ ] Matches any character(s) inside the brackets\n" " [ ] Matches any character(s) inside the brackets\n"
" [^ ] Matches any character(s) not inside the brackets\n" " [^ ] Matches any character(s) not inside the brackets\n"