You are viewing a single comment's thread. Return to all comments →
pattern = r"(?<=[^aeiou])([aeiou|AEIOU]{2,})(?=[^aeiou])" s = input() match = list(map(lambda x: x.group(), re.finditer(pattern, s))) if match: for i in match: print(i) else: 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 →