Search a list: Difference between revisions
Content added Content deleted
(Slate implementation) |
(+ AutoHotkey) |
||
Line 117: | Line 117: | ||
5 Bush |
5 Bush |
||
</pre> |
</pre> |
||
=={{header|AutoHotkey}}== |
|||
<lang AutoHotkey> |
|||
haystack = Zig Zag Wally Ronald Bush Krusty Charlie Bush Bozo |
|||
needle = bush, washington |
|||
loop, parse, needle, `, |
|||
{ |
|||
if instr(haystack, A_LoopField) |
|||
msgbox, % A_LoopField |
|||
else |
|||
msgbox % A_LoopField . " not in haystack" |
|||
} |
|||
</lang> |
|||
=={{header|AWK}}== |
=={{header|AWK}}== |