summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-10-08 13:32:15 (GMT)
committerBrad King <brad.king@kitware.com>2012-10-08 13:32:15 (GMT)
commit0ed6ff7a2ede945f11d820a4f17536c67a5f0bf2 (patch)
tree1c72f0c89cf8b843652d41f441b8a03ed8e00bc5
parent60b59a54c1f399840fc468129cc25207fd388001 (diff)
downloadCMake-0ed6ff7a2ede945f11d820a4f17536c67a5f0bf2.zip
CMake-0ed6ff7a2ede945f11d820a4f17536c67a5f0bf2.tar.gz
CMake-0ed6ff7a2ede945f11d820a4f17536c67a5f0bf2.tar.bz2
string: Clarify regex documentation of '-' behavior
Mention that it is only special inside brackets. Show an example. Suggested-by: Alan W. Irwin
-rw-r--r--Source/cmStringCommand.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmStringCommand.h b/Source/cmStringCommand.h
index 43a0dbe..728b1bc 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"