Created
June 9, 2018 08:59
-
-
Save navidanindya/29544945f9e8f092d7b795acb346d84d to your computer and use it in GitHub Desktop.
Strip vowels using Python. [ Link: https://repl.it/@nealtheguitaris/BumpyIdealJumpthreading ]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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