Program to remove vowels from a String | C ++ program to remove vowels from a String ; Driver Code
#include <bits/stdc++.h> NEW_LINE using namespace std ; string remVowel ( string str ) { regex r ( " [ aeiouAEIOU ] " ) ; return regex_replace ( str , r , " " ) ; } int main ( ) { string str = " GeeeksforGeeks ▁ - ▁ A ▁ Computer ▁ Science ▁ Portal ▁ for ▁ Geeks " ; cout << ( remVowel ( str ) ) ; return 0 ; }