Hi,
 Following is my input:-
Str = "This is a String."

expected output is :-
output = "4 2 1 7"

I tried doing this but was not successful, any thoughts pls

puts Str.count(" ").size  -> This doesn't fit my expected output.

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