DEV Community

loading...

Discussion on: Daily Challenge #3 - Vowel Counter

Collapse
robbitt07 profile image
robbitt07

Python regex example

import re
def num_vowels(s):
    return len(re.findall('[aeiou]', s))