DEV Community

Discussion on: Daily Challenge #3 - Vowel Counter

Collapse
 
hraverkar profile image
Harshal Raverkar

var vowelCount = Regex.Matches(str, @"[AEIOUaeiou]").Count;
Console.WriteLine(vowelCount);