Subject: Re: How i can to parse string
From: "Kroeger, Simon (ext)" <simon.kroeger.ext siemens.com>
Date: Wed, 26 Apr 2006 22:29:07 +0900
> [..]
> 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