I am trying to match a word that has 2 vowels (not necessarily sequentially), but the regular expression that I have chosen either does not match any or is not enough. This is the last iteration (dart).
final vowelRegex = new RegExp(r'[aeiouy]{2}');
Here is an approximate collapsible sentence, which should coincide, one, shoulder, them, etc. This is only a coincidence of the shoulder and them. I understand why, because I defined this expression. How can I define an expression to match on 2 vowels, regardless of position in the word?
one shoulder their the which over
An expression needs to be tested with only one word, so hopefully this will simplify the situation.
source
share