Program to remove vowels from a String | C # program to remove vowels from a String ; Driver code
using System ; using System . Text . RegularExpressions ; class GFG { static String remVowel ( String str ) { str = Regex . Replace ( str , " [ aeiouAEIOU ] " , " " ) ; return str ; } public static void Main ( ) { String str = " GeeeksforGeeks ▁ - ▁ A ▁ Computer ▁ Science ▁ Portal ▁ for ▁ Geeks " ; Console . WriteLine ( remVowel ( str ) ) ; } }