multi split function taking delimiter list

martinskou at gmail.com martinskou at gmail.com
Tue Nov 14 20:56:40 CET 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