import re text = "hey there 222 how are you ??? fine I hope!" print re.findall("[a-z]+", text, re.IGNORECASE)
Standard input is empty
['hey', 'there', 'how', 'are', 'you', 'fine', 'I', 'hope']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!