I am making a simple regular expression to recognise first consonant(if any),then all the vowels in between and then the next consonant after the last vowel(if any).
For ex:
we are all morons -->> we ae al moon
I wrote this expression but it doesn't work in all situations.
Please advise.
"[^aeiou]?[aeiou]+[aeiou]?"
Not sure where I am getting wrong.