Subject: Re: regex select multiple words in the middle of a sentence
From: Mark Thomas <mark thomaszone.com>
Date: Tue, 7 Apr 2009 22:59:10 +0900
References: 333206333210
> 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.
-- Mark.