fork download
  1. import re
  2. s = "@username blah blah #blah blah #hashtag @blah blah blah"
  3. print(re.sub(r'([@#][\w-]+)|[aiueoAIUEO]', r'\1', s))
Success #stdin #stdout 0.02s 9752KB
stdin
Standard input is empty
stdout
@username blh blh #blah blh #hashtag @blah blh blh