human
Determining the unmatched portion of a string using a regex in Python
assistant
Here is some code to split string 'Words, words, words.' using a regex '(\\W+)'

re.split('(\\W+)', 'Words, words, words.')

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