def split(delimiters, string, maxsplit=0):
    import re
regexPattern = '|'.join(map(re.escape, delimiters))
return re.split(regexPattern, string, maxsplit)
Python: Split string with multiple delimiters