I am trying to formulate a regex expression (running in Python) that gets passed a word and needs to only find words that do not contain 2 adjacent vowels. For Example:
me - would match
mee - would not match
meat - would not match
base - would match
basketball - would match
I am lost here as I do not know how to check for something that does not exist?
Thanks for the help
@Tichodroma’s answer is simpler and therefore should be preferable if you can negate the match in the code later i.e., just write
if not mwhere you would writeif mwith this solution.