loading...

re: Daily Challenge #80 - Longest Vowel Change VIEW POST

FULL DISCUSSION
 
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.

code of conduct - report abuse