how to remove vowels from a sttring using regex c#

75

how to remove vowels from a sttring using regex c# -

string resultString = null;
try {
    resultString = Regex.Replace(subjectString, "(?<!^)[aeui](?!$)", "");
} catch (ArgumentException ex) {
    // Syntax error in the regular expression
}

Comments

Submit
0 Comments