You are viewing a single comment's thread. Return to all comments →
The pattern in lookbehind and lookaheads exclude consonants, whitespace, digits, non-slphanumeric and underscore.
import re pattern = '(?<=[^aeiou\s\d\W_])([aeiou]{2,})(?=[^aeiou\s\d\W_])' lst = re.findall(rf'{pattern}', input(), re.IGNORECASE) if lst: print(*lst, sep='\n') 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 →
The pattern in lookbehind and lookaheads exclude consonants, whitespace, digits, non-slphanumeric and underscore.