I'm trying to parse a string that has multiple delimiters which may be repeating.
Input string: "-abc,-def,ghi-jkl,mno"
Expected return: ["abc", "def", "ghi", "jkl", "mno"]
I've tried
re.split(",|-", string)
But the return is:
['', 'abc', '', 'def', 'ghi', 'jkl', 'mno']