From: Hans Mackowiak Date: 2012-07-07T15:15:52+09:00 Subject: Re: Management of words in a string yeah sorry i was dump. str = "bag of bananas and one apple" str.scan(/\Wa\w+/).size => 2 -- Posted via http://www.ruby-forum.com/.