From: Hans Mackowiak Date: 2012-07-07T17:54:56+09:00 Subject: Re: Management of words in a string hm still wrong, the best thing i could do is this: str = "a bag of bananas and one apple" str.scan(Regexp.union(/^a\w*/,/\Wa\w*/)) => ["a", " and", " apple"] -- Posted via http://www.ruby-forum.com/.