Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

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=


  • Prev by Date: Re: Variables in Iterator limits?
  • Next by Date: Re: Plot this?
  • Previous by thread: Mathematica in Education and Research?
  • Next by thread: Re: help with DictionaryLookup[] and a type of regular expression