You are viewing a single comment's thread. Return to all comments →
import re if __name__=="__main__": s = input() r = re.findall(r'(?<=[^aeiouAEIOU])[aeiouAEIOU]{2,}(?=[^aeiouAEIOU])',s) if not r: print(-1) else: for p in r: print(p)
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 →