DEV Community

loading...

Discussion on: Daily Challenge #80 - Longest Vowel Change

Collapse
edh_developer profile image
edh_developer
import re

def longTokenLength(s):
    return max([len(x) for x in re.split("[^aeiou]",s)])

print longTokenLength("codewarriors")

Edit: It being python, I'm condensing my previous code down into a list comprehension.