Re.findall() & Re.finditer()

  • + 1 comment

    Here's my code:

    from re import findall, IGNORECASE
    print('\n'.join(findall(r'(?=[^aeiou]([aeiou]{2,})[^aeiou])', input(), IGNORECASE)) or -1)