Skip to content

Instantly share code, notes, and snippets.

@ooade
Created September 4, 2016 17:37
Show Gist options
  • Save ooade/25d9fc5d664cbc48c1b1551de81078cb to your computer and use it in GitHub Desktop.
Save ooade/25d9fc5d664cbc48c1b1551de81078cb to your computer and use it in GitHub Desktop.
Anti Vowel in python
import re
def anti_vowel(txt):
return re.sub('a|e|i|o|u', '', txt, flags=re.IGNORECASE)
print anti_vowel("I am a chicken!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment