diff options
author | Brad King <brad.king@kitware.com> | 2012-10-08 09:32:15 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-10-08 09:32:15 -0400 |
commit | 0ed6ff7a2ede945f11d820a4f17536c67a5f0bf2 (patch) | |
tree | 1c72f0c89cf8b843652d41f441b8a03ed8e00bc5 /Source/cmStringCommand.h | |
parent | 60b59a54c1f399840fc468129cc25207fd388001 (diff) | |
download | cmake-0ed6ff7a2ede945f11d820a4f17536c67a5f0bf2.tar.gz |
string: Clarify regex documentation of '-' behavior
Mention that it is only special inside brackets. Show an example.
Suggested-by: Alan W. Irwin
Diffstat (limited to 'Source/cmStringCommand.h')
-rw-r--r-- | Source/cmStringCommand.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmStringCommand.h b/Source/cmStringCommand.h index 43a0dbe1f8..728b1bc5fc 100644 --- a/Source/cmStringCommand.h +++ b/Source/cmStringCommand.h @@ -133,7 +133,8 @@ public: " . Matches any single character\n" " [ ] Matches any character(s) inside the brackets\n" " [^ ] Matches any character(s) not inside the brackets\n" - " - Matches any character in range on either side of a dash\n" + " - Inside brackets, specifies an inclusive range between\n" + " characters on either side e.g. [a-f] is [abcdef]\n" " * Matches preceding pattern zero or more times\n" " + Matches preceding pattern one or more times\n" " ? Matches preceding pattern zero or once only\n" |