From: Robert Dober Date: 2009-04-08T01:48:13+09:00 Subject: Re: regex select multiple words in the middle of a sentence On Tue, Apr 7, 2009 at 3:59 PM, Mark Thomas wrote: >> With 1.9's Oniguruma (is it available for 1.8?) it's quite easy > > > This shorter one works in 1.8 > >  scan(/EMISOR:\s*([\w\s]+?)(?=\s*[A-Z][a-z])/).flatten > > > I'm curious as to what Oniguruma-specific feature you used in yours. None, apparently ;) I though however that "(?=" was, never realized it was already there in 1.8. Does [:lower:] and [:upper:] work in 1.8? R.