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/.