Hans Mackowiak wrote in post #1067740:
> str.scan(/a\w+/).size

Clearly wrong.

str = "bag of bananas"
str.scan(/a\w+/).size
=> 2

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