in reply to Re^3: Phone number to word conversion
in thread Phone number to word conversion

in the end you will find that you have to come up with a very fine specification for what is and isn't acceptable during your mapping, as those choices will substantially influence technique. for example you could also want any number of letters in any permutation, as long as there's at least one or more of a particular digit. The digit 1 could be used as a wildcard, etc, etc. The most straightforward case--what does my full phone number spell as an entire word in that sequence--is a very easy regex.
the hardest line to type correctly is: stty erase ^H

Replies are listed 'Best First'.
Re^5: Phone number to word conversion
by oko1 (Deacon) on Nov 13, 2010 at 02:35 UTC

    > you have to come up with a very fine specification for what is and isn't acceptable during your mapping

    I don't mean to sound insulting, but I did come up with one. Please take a careful look at the original post.


    --
    "Language shapes the way we think, and determines what we can think about."
    -- B. L. Whorf
      what about if you turn the /etc/words into number combinations instead, and grep each such number combination into your chosen number, stripped of 0's and 1's?
      the hardest line to type correctly is: stty erase ^H