Look for 3 consecutive vowels. Capture the first in the group. After the first, check to see if it is again No. 1 with a negative Lookahead. After passing this test, take the next character. Then use two negative Lookaheads, one to check if it is No. 1, and the other if it is not # 2.
The last step can be OR 'in one look.
(?=[aeouiy]{3})(.)(?!\1)(.)(?!\1|\2).
You do not need a test for the last character. The first Lookahead provides him with one of aeouiy ; third, negative, lookahead ensures that it is not character # 1 or character # 2.
source share