correct. - must be the very last character in a character class, and ] must be the very first character in a character class (should never have to escape it), if either are to be used literally.

- Raccoon

PS. I haven't tested it yet, but I believe if you escape a character that doesn't need to be escaped, that literal '\' is added to the class. Logically, you would think to simply require '\' as the last character to prevent possible confusion, but '-' already reserves that throne. '\-' could arguably be an escaped '-', but I suppose that would be the best form.

Last edited by Raccoon; 11/05/03 04:32 AM.

Well. At least I won lunch.
Good philosophy, see good in bad, I like!