#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import absolute_import, print_function

import re


def multiple_split(_str, splits):
    res = [_str]
    for sp in splits:
        tmp = []
        # Why?
        list(map(lambda x: tmp.extend(x.split(sp)), res))
        res = tmp

    return [x for x in res if x]


if __name__ == '__main__':
    s = 'ab;cd|efg|hi,,jkl|mn\topq:rst,uvw\nxyz'
    print(multiple_split(s, ',:;\n\t'))
    print(re.split(r'[,:;\n\t]+', s))
