http://qs321.pair.com?node_id=944322


in reply to Re^2: regex to find vowels in anyorder
in thread regex to find vowels in anyorder

As JavaFan and ww are discussing, your post seems to imply that you think the anded if does not short circuit when the first vowel is not found. That is not the case.

A loop to put each vowel into regexes sequentially would have the advantage of not hardcoding the vowels, though it would do at least as much work.