help with DictionaryLookup[] and a type of regular expression
- To: mathgroup at smc.vnet.net
- Subject: [mg109643] help with DictionaryLookup[] and a type of regular expression
- From: Michael Stern <nycstern at gmail.com>
- Date: Sun, 9 May 2010 07:51:46 -0400 (EDT)
Is there an elegant way to do dictionary searches that match specified
kinds of character repetition? For example, to search for six letter
words that start with "d" and end with "k", where the third and fourth
letter are the same?
Finding six letter words that start with "d" and end with "k" is easy --
DictionaryLookup[{"English", RegularExpression["d....k"]}]
But how do we restrict the answer to words where the third and fourth
letters are the same?
Thanks,
Michael=