multi split function taking delimiter list

martinskou at gmail.com martinskou at gmail.com
Tue Nov 14 14:56:40 EST 2006


Hi, I'm looking for something like:

multi_split( 'a:=b+c' , [':=','+'] )

returning:
['a', ':=', 'b', '+', 'c']

whats the python way to achieve this, preferably without regexp?

Thanks.

Martin




More information about the Python-list mailing list