import re def split_list(string): list = re.split(' *, *|:',string) return list