Program to scan dictionary for words with letters in a particular set?

From: Jim Witte (jswitte_at_bloomington.in.us)
Date: 05/27/04


To: beginners@perl.org
Date: Thu, 27 May 2004 00:14:57 -0500

Given a file of words W such as 'cat dog at home ...' (or perhaps read
into an array, though that would be a very large array), and a set of
letters L (a string 'aoeuidhtns' - perhaps put into a array), how would
I write a program to extract all words in W whose letters are all in L?
  I'm thinking of a program to generate a string of words for a
typing-tutor program.

Jim Witte
jswitte@bloomington.in.us
Indiana University CS



Relevant Pages

  • RE: [PHP] Regular expressions
    ... way the letters are arranged? ... *function convertToPattern converts a string into a pattern based on ... $arrHolder = array( ...
    (php.general)
  • Re: passing a string to a dll
    ... Joe, I really appreciate you taking the time to demonstrate this. ... sure how I would implement indexing it for random alphanumeric codes. ... I might handle the array. ... I actually have been wondering if I could use a second string ...
    (microsoft.public.vc.mfc)
  • Re: passing a string to a dll
    ... I might handle the array. ... I actually have been wondering if I could use a second string ... look at insertion cost, organization cost, and search cost. ...
    (microsoft.public.vc.mfc)
  • Re: Index of the n-th occurrence
    ... string? ... occurrences of your_pattern ... This returns an array of the pairs of the letter and its index. ... extract the letters with map. ...
    (comp.lang.ruby)
  • Re: Array Type Mismatch
    ... Dim resultAs String ... I am still somewhat confused as to why nothing is stored in the array. ... Public Function TextBoxGetLine(....arguments... ...
    (microsoft.public.access.formscoding)