import remy_string = "Hey, I'm 9/11 7-11"print(re.findall(r'\w+|[^\w\s]', my_string))
Standard input is empty
['Hey', ',', 'I', "'", 'm', '9', '/', '11', '7', '-', '11']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!