string.split escaping

Dave Harrison dave at nullcube.com
Thu May 29 02:03:37 EDT 2003


If I have a string 

a = 'dog;cat;big;dog'

How do I escape the last ';' so that when I call 

string.split(a, ';')

I get

['dog', 'cat', 'big;dog']

??





More information about the Python-list mailing list