The pattern [aeiou][^vr]e(?=[^r])
works fine when testing at RegexPlanet.com, but when I use the same pattern with re.match
in Python I get no matches.
import re
pattern = r'[aeiou][^vr]e(?=[^r])'
list = ['pale.', 'taste', 'kite']
for word in list:
if re.match(pattern, word):
print(word)
Expected Result:
pale.
kite.