Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
clean regular solution in Speedy category for Striped Words by wolckodav
import re
VOWELS = "AEIOUY"
CONSONANTS = "BCDFGHJKLMNPQRSTVWXZ"
def checkio(text):
return len(re.findall(r'\b((?![%s]{2}|[%s]{2})[A-Z]){2,}\b' % (CONSONANTS, VOWELS), text.upper()))
Nov. 10, 2016