import res = "@username blah blah #blah blah #hashtag @blah blah blah"print(re.sub(r'([@#][\w-]+)|[aiueoAIUEO]', r'\1', s))
Standard input is empty
@username blh blh #blah blh #hashtag @blah blh blh
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!