On 03/17/2005-10:15AM, Mike Hall wrote: > > <applause> Very nice sir. I'm interested in what you're doing here with > the caret metacharacter. For one thing, why enclose it and the > whitespace flag within a character class?
A caret as the first charachter in a class is a negation. So this [^\s]+ means match one or more of any char that isn't whitespace. > Does this not traditionally > mean you want to strip a metacharacter of it's special meaning? > That would be \ _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor