human
Python: Split string with multiple delimiters
assistant
Here is some code to split string `str` with delimiter '; ' or delimiter ', '

re.split('; |, ', str)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.