Philip S Tellis wrote:
If - is not the first or last character, then it defines a range.
ie, A-Z means from A to Z. You can have multiple ranges and intermix ranges with other lists, so you can do this:
[0-9a-fA-F] to match a hex digit or even this: [abc0-9defA-EF] - both match the same.
when - is not first or last, it matches a literal -.
^^^
Mistake there. When '-' *is* first or last, it matches a literal '-'.
Manish