in reply to regex to find vowels in anyorder
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/)) { ... }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: regex to find vowels in anyorder
by leuchuk (Novice) on Dec 19, 2011 at 16:55 UTC | |
by JavaFan (Canon) on Dec 19, 2011 at 17:58 UTC | |
by ww (Archbishop) on Dec 19, 2011 at 21:06 UTC | |
by JavaFan (Canon) on Dec 20, 2011 at 01:28 UTC | |
by ww (Archbishop) on Dec 20, 2011 at 03:05 UTC | |
by JavaFan (Canon) on Dec 19, 2011 at 23:31 UTC | |
by SuicideJunkie (Vicar) on Dec 20, 2011 at 00:17 UTC | |
Re^2: regex to find vowels in anyorder
by varghees (Novice) on Dec 19, 2011 at 15:10 UTC | |
by Corion (Patriarch) on Dec 19, 2011 at 15:23 UTC | |
by MidLifeXis (Monsignor) on Dec 19, 2011 at 15:22 UTC |
In Section
Seekers of Perl Wisdom