re: Daily Challenge #3 - Vowel Counter VIEW POST

FULL DISCUSSION
 

Groovy has a nice built-in Pattern matcher

Integer countVowels(String text) {
    return (text =~ /(?i)[aeiou]/).size()
}
code of conduct - report abuse