Skip to content

Instantly share code, notes, and snippets.

@navidanindya
Created June 9, 2018 08:59
Show Gist options
  • Save navidanindya/29544945f9e8f092d7b795acb346d84d to your computer and use it in GitHub Desktop.
Save navidanindya/29544945f9e8f092d7b795acb346d84d to your computer and use it in GitHub Desktop.
Strip vowels using Python. [ Link: https://repl.it/@nealtheguitaris/BumpyIdealJumpthreading ]
import re
def disemvowel(string):
return re.sub('[aeiou]','',string,flags=re.IGNORECASE)
print(disemvowel("Hello World!"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment