You are viewing a single comment's thread. Return to all comments →
import re regex = re.compile(r'(?<=[^aeiouAEIOU])[aeiouAEIOU]{2,}(?=[^aeiouAEIOU])') s = input() matches = regex.findall(s) for match in matches: print(match) if not matches: print(-1)
Seems like cookies are disabled on this browser, please enable them to open this website
Re.findall() & Re.finditer()
You are viewing a single comment's thread. Return to all comments →