import resplit = re.findall(r"[\w']+|[.,!?;]", "How are you?")print(split)
Standard input is empty
['How', 'are', 'you', '?']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!