From: "Kroeger, Simon (ext)" Date: 2006-04-26T22:29:07+09:00 Subject: Re: How i can to parse string > [..] > But... but... neither of you guys's version gives the same result as > Jonh's :-) > > I think this does: > > Hash[*str.scan(/([^,]+)=([^,]+)/).flatten] > > > David > or Hash[*str.split(/=|,/)] cheers Simon