Sujet : Re: ( Substring function in Python, Lisp) -- [Hijack] contains [hijk]
De : richard (at) *nospam* cogsci.ed.ac.uk (Richard Tobin)
Groupes : rec.puzzles comp.lang.lisp comp.lang.pythonDate : 16. Feb 2025, 01:18:32
Autres entêtes
Organisation : Language Technology Group, University of Edinburgh
Message-ID : <voraso$mkp$1@macpro.inf.ed.ac.uk>
References : 1
User-Agent : trn 4.0-test76 (Apr 2, 2001)
In article <7513d4f4cf89bfd31edda3eb5ed84052@
www.novabbs.com>,
HenHanna <
HenHanna@dev.null> wrote:
A few weeks ago, i was curious to see What English words contained (
abcd... ) consecutive letters of the alphabet.
>
defrag defg
defang defg
defog defg
>
hijack hijk
>
________________________________(Is there such a word containing 5
letters? )
$ awk 'BEGIN {for(i=97; i<=118; i++) printf("%c.*%c.*%c.*%c.*%c\n", i, i+1, i+2, i+3, i+4);}' | while read e; do grep -i $e /usr/share/dict/words; done
-- Richard