Find words whose first and last three letters are equal: Difference between revisions
Find words whose first and last three letters are equal (view source)
Revision as of 16:51, 6 November 2021
, 2 years agoAdded AutoHotkey
(→{{header|Ruby}}: Add Ruby) |
Alpha bravo (talk | contribs) (Added AutoHotkey) |
||
Line 103:
{{out}}
<pre>antiperspirant
calendrical
einstein
hotshot
murmur
oshkosh
tartar
testes</pre>
=={{header|AutoHotkey}}==
<lang AutoHotkey>FileRead, db, % A_Desktop "\unixdict.txt"
for i, word in StrSplit(db, "`n", "`r")
if StrLen(word) < 6
continue
else if (SubStr(word, 1, 3) = SubStr(word, -2))
result .= word "`n"
MsgBox, 262144, , % result
return</lang>
{{out}}
<pre>antiperspirant
calendrical
|