Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by AnomalousMonk (Archbishop)
on Apr 01, 2010 at 07:43 UTC ( [id://832230]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://832230]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2024-04-20 03:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found