Created
September 29, 2014 17:32
-
-
Save nasser/0bbc959f48c5f8b3d890 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ar = open("ar.txt").read | |
ar.force_encoding "utf-8" | |
print ar.split.map { |e| e.strip }. | |
reject { |e| e =~ /\d|\w/ }. | |
reject { |e| e.length > 2 }. | |
join("\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment