Browse Source

Merge topic 'doc-regex-range'

0ed6ff7 string: Clarify regex documentation of '-' behavior
Brad King 13 years ago
parent
commit
3dd443b510
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Source/cmStringCommand.h

+ 2 - 1
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"