Sujet : Re: ( Substring function in Python, Lisp) -- [Hijack] contains [hijk]
De : HenHanna (at) *nospam* dev.null (HenHanna)
Groupes : rec.puzzles comp.lang.lisp comp.lang.pythonDate : 16. Feb 2025, 14:37:11
Autres entêtes
Organisation : novaBBS
Message-ID : <669bfbbb3572823c8ee6d7265a7ff111@www.novabbs.com>
References : 1 2 3
User-Agent : Rocksolid Light
On Sun, 16 Feb 2025 7:43:10 +0000, Paul Rubin wrote:
richard@cogsci.ed.ac.uk (Richard Tobin) writes:
$ 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
>
Nice! That picked up "Kilimanjaro" which my more complicated Python
script missed, because it didn't case-fold.
___________How about alphabetically backwards?
eponym ponm
gifted gfed
__________ short Python program for Subseq (with & without using
RE) ?