Jump to content

Find words whose first and last three letters are equal: Difference between revisions

Added AutoHotkey
(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
299

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.