ABC words: Difference between revisions
Content added Content deleted
(Added a Lua solution) |
(→{{header|Ruby}}: Added Ruby) |
||
Line 1,978: | Line 1,978: | ||
54. tabernacle |
54. tabernacle |
||
55. tablecloth |
55. tablecloth |
||
</pre> |
|||
=={{header|Ruby}}== |
|||
translation from Perl |
|||
<lang ruby>puts File.open("unixdict.txt").grep(/^[^bc]*a[^c]*b.*c/) |
|||
</lang> |
|||
{{out}}Same 55 words: |
|||
<pre>aback |
|||
abacus |
|||
abc |
|||
abdicate |
|||
abduct |
|||
abeyance |
|||
abject |
|||
abreact |
|||
abscess |
|||
... |
|||
quarterback |
|||
razorback |
|||
roadblock |
|||
sabbatical |
|||
snapback |
|||
strabismic |
|||
syllabic |
|||
tabernacle |
|||
tablecloth |
|||
</pre> |
</pre> |
||