正则表达式合理的情况:
import reDATA = "Hey, you - what are you doing here!?"print re.findall(r"[w']+", DATA)# Prints ['Hey', 'you', 'what', 'are', 'you', 'doing', 'here']

正则表达式合理的情况:
import reDATA = "Hey, you - what are you doing here!?"print re.findall(r"[w']+", DATA)# Prints ['Hey', 'you', 'what', 'are', 'you', 'doing', 'here']