Words containing "the" substring: Difference between revisions
Content added Content deleted
(→{{header|Python}}: Add Perl) |
|||
Line 346: | Line 346: | ||
/Code$ </lang> |
/Code$ </lang> |
||
=={{header|Phix}}== |
|||
<lang Phix>function the(string word) return length(word)>11 and match("the",word) end function |
|||
sequence words = filter(split_any(get_text("demo/unixdict.txt")," \r\n"),the) |
|||
printf(1,"found %d 'the' words:\n%s\n",{length(words),join(shorten(words,"",3),", ")})</lang> |
|||
{{out}} |
|||
<pre> |
|||
found 32 'the' words: |
|||
authenticate, chemotherapy, chrysanthemum, ..., weatherproof, weatherstrip, weatherstripping |
|||
</pre> |
|||
=={{header|Python}}== |
=={{header|Python}}== |