From 0ed6ff7a2ede945f11d820a4f17536c67a5f0bf2 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 8 Oct 2012 09:32:15 -0400 Subject: [PATCH] string: Clarify regex documentation of '-' behavior Mention that it is only special inside brackets. Show an example. Suggested-by: Alan W. Irwin --- Source/cmStringCommand.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmStringCommand.h b/Source/cmStringCommand.h index 43a0dbe1f..728b1bc5f 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"