pretty strange behavior of "strip"

rdmurray at bitdance.com rdmurray at bitdance.com
Fri Dec 5 17:20:28 CET 2008


On Fri, 5 Dec 2008 at 07:54, Mark Tolonen wrote:
>> > >  import re
>> > >  re.split('[,.]','blah,blah.blah')
> ['blah', 'blah', 'blah']

Thank you.  Somehow it never occurred to me that I could use that
kind of pattern that way.  I guess my brain just doesn't think
in regexes very well :)

--RDM



More information about the Python-list mailing list