I am trying to write a regular expression in Python which takes a string and checks if:
- The last character is a vowel.
- The last 2 characters are not the same.
This is what I came up with:
[aeiou]$
Can anybody help me with point number 2: last 2 characters are not the same. For example, expresso is valid and expressoo is not valid.