I'd like to partition a string with more than one separator, for example:
string = 'xxx-yyy/zzz'
I'd like my output to be something like this:
('xxx', '-', 'yyy', '/', 'zzz')
Now, I know the partition method for strings however that only allows one separator, so I can do something like:
>>> string.partition('-')
('xxx', '-', 'yyy/zzz')
Which isn't what I'm looking for as it doesn't also break up the '/'. Any help would be appreciated!