human
Splitting a string based on a certain set of words
assistant
Here is some code to split a string `l` by multiple words `for` or `or` or `and`

[re.split('_(?:f?or|and)_', s) for s in l]

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