[Edit]
+
0
-
0

python remove vowels from string

1 2 3 4 5 6 7 8 9 10
import re def remove_vowels(string): return re.sub(r'[aeiouy]', '', string, flags=re.IGNORECASE) # Usage example: text = 'Example text...' print(remove_vowels(text)) # 'xmpl txt...'