Smells like homework.
The best way is likely to be KISS:
if (/a/ and /e/ and /i/ and /o/ and /u/ and (rand()>0.5 or /y/)) { ... }
In reply to Re: regex to find vowels in anyorder
by SuicideJunkie
in thread regex to find vowels in anyorder
by varghees
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |