import remsg = "Hi! I'm Mike, I like M&M. How are you?"pattern = re.compile(r"[^\s\w'&%-]")print(pattern.sub ('', msg))
Standard input is empty
Hi I'm Mike I like M&M How are you
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!