[Python-ideas] list as parameter for the split function

Emile van Sebille emile at fenx.com
Tue Sep 29 00:23:47 CEST 2015


On 9/28/2015 3:10 PM, Niilos wrote:
> '00:02:34,452 --> 00:02:37,927'.split([ ':', ' --> ', ',' ])

'00:02:34,452 --> 00:02:37,927'.replace(",",":").replace(" --> 
",":").split(":")

Emile



More information about the Python-ideas mailing list