Advertisement
here2share

# remove_all_vowels_fastest.py

Jun 21st, 2015
362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. # remove_all_vowels_fastest.py
  2.  
  3. import re
  4.  
  5. def rmv_vwl(s):
  6.     result = re.sub(r'[AEIOUY]', '', s, flags=re.IGNORECASE)
  7.     return result
  8.  
  9. print rmv_vwl('Python Is Quite Awesome !!! ABCDE abcde AaEeIiOoUuYy 123')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement