Path: ...!weretis.net!feeder8.news.weretis.net!newsfeed.xs3.de!nntp-feed.chiark.greenend.org.uk!ewrotcd!usenet.inf.ed.ac.uk!.POSTED!not-for-mail From: richard@cogsci.ed.ac.uk (Richard Tobin) Newsgroups: rec.puzzles,comp.lang.lisp,comp.lang.python Subject: Re: ( Substring function in Python, Lisp) -- [Hijack] contains [hijk] Date: Sun, 16 Feb 2025 00:18:32 +0000 (UTC) Organization: Language Technology Group, University of Edinburgh Lines: 20 Message-ID: References: <7513d4f4cf89bfd31edda3eb5ed84052@www.novabbs.com> NNTP-Posting-Host: macaroni.inf.ed.ac.uk X-Trace: macpro.inf.ed.ac.uk 1739665112 23193 129.215.197.42 (16 Feb 2025 00:18:32 GMT) X-Complaints-To: usenet@macpro.inf.ed.ac.uk NNTP-Posting-Date: Sun, 16 Feb 2025 00:18:32 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: richard@cogsci.ed.ac.uk (Richard Tobin) Bytes: 1564 In article <7513d4f4cf89bfd31edda3eb5ed84052@www.novabbs.com>, HenHanna 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