From: Daniel Sheppard Date: 2005-12-22T09:44:25+09:00 Subject: Re: Odd behavior of String#scan > From: Dan Diebolt [mailto:dandiebolt@yahoo.com] > > Will this do? > > s="abcSTARTdef,ghi,jkl,ENDmno" > s.scan(/START(.*)END/).to_s.split(",") > > => ["def", "ghi", "jkl"] s="abcSTARTdef,ghi,jkl,ENDmno" /START(.*)END/.match(s)[1].split(",") Better conveys the intention to me, but YMMV. ##################################################################################### This email has been scanned by MailMarshal, an email content filter. ##################################################################################### ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by NetIQ MailMarshal #####################################################################################