<s>[INST] Python - Split Strings with Multiple Delimiters I think what I want to do is a fairly common task but I've found no reference on the web. I have text, with punctuation, and I want list of the words. 
"Hey, you - what are you doing here!?"

should be
['hey', 'you', 'what', 'are', 'you', 'doing', 'here']

But Python's str.split() only works with one argument... So I have all words with the punctuation after I split with whitespace. Any ideas?
 [/INST] A case where regular expressions are justified:
import re
DATA = "Hey, you - what are you doing here!?"
print re.findall(r"[\w']+", DATA)
# Prints ['Hey', 'you', 'what', 'are', 'you', 'doing', 'here']

[Edited to include ' in the word characters - thanks, Danosaure.]
 </s>