I am new to Ruby. This is a programming interview question to use any
language. I am trying to do it in Ruby.

Write a program to input a given sentence. Replace each word with the
firstletter/#ofcharactersbetween1st&lastletter/lastletter of the word.
All non-alpha (numbers, punctuation, etc.) should not be changed.

Example input: There are 12 chickens for 2 roosters.

Desired output: T3e a1e 12 c6s f1r 2 r6s.

Attachments:
http://www.ruby-forum.com/attachment/8355/start.txt


-- 
Posted via http://www.ruby-forum.com/.