Re.findall() & Re.finditer()

  • + 0 comments

    Here's my code:

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