I'm starting the study of regular expressions and I've been wondering how can I build and test the regular expression in UNIX notation for all vowel strings that contain the substring "ai" or "ui".
would it simply be something like: (ai|ui) ? How could I test it?
IIUC, you want something like
'^[aeiou]*?(ai|ui)[aeiou]*$'
. Examples: