in reply to count words which contain all vowels in a file.

For extra credit, print and count all words in the word list in which all the vowels appear (in any order) once and only once for each vowel.

  • Comment on Re: count words which contain all vowels in a file.

Replies are listed 'Best First'.
Re^2: count words which contain all vowels in a file.
by BrowserUk (Patriarch) on Apr 02, 2010 at 00:30 UTC
    perl -nE"/(?=^[^a]*a[^a]*$)(?=^[^e]*e[^e]*$)(?=^[^i]*i[^i]*$)(?=^[^o]* +o[^o]*$)(?=^[^u]*u[^u]*$)/ and print" words.txt