import retext = "!Hello, world!"print( re.split(r'[\W_]+', text) )print( re.findall(r'[^\W_]+', text) )
Standard input is empty
['', 'Hello', 'world', ''] ['Hello', 'world']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!