human
Extracting words from a string, removing punctuation and returning a list with separated words in Python
assistant
Here is some code to get a list of  words from a string `Hello world, my name is...James the 2nd!` removing punctuation

re.compile('\\w+').findall('Hello world, my name is...James the 2nd!')

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