On 5/17/07, Jon Fi <exabrial / gmail.com> 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=" <orderMsg type=7 size=0 biz=1>" 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/