From: Robert Dober Date: 2009-04-07T19:38:28+09:00 Subject: Re: regex select multiple words in the middle of a sentence On Tue, Apr 7, 2009 at 12:24 PM, Robert Dober wrote: >   scan( /EMISOR:\s*((?:[A-Z]+\s*)+)(?=[A-Z][a-z])/ ).flatten Forgive YLHS (L for lazy) scan( /EMISOR:\s*((?:[A-Z]+\s*?)+)(?=\s*[A-Z][a-z])/ ).flatten I was too greedy and got you trailing spaces. R.