From: Harry Kakueki Date: 2007-05-18T20:21:29+09:00 Subject: Re: Can't get subgroup of regex to repeat with +... what the On 5/17/07, Jon Fi wrote: > > Ah ok. So how can I get it to repeat without overwriting the existing > values for the group? Or is there a better way to do this? > If you want to use regular expressions, try 'scan'. c=" " c.scan(/\w+=?\w+/).each {|f| p f.split("=")} Modify the regular expression as necessary. Harry -- A Look into Japanese Ruby List in English http://www.kakueki.com/