Forum: Ruby Re: How i can to parse string

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Kroeger, Simon (ext) (Guest)
on 2006-04-26 17:32
(Received via mailing list)



unknown (Guest)
on 2006-04-26 21:21
(Received via mailing list)
Hi --

On Wed, 26 Apr 2006, Kroeger, Simon (ext) wrote:

>> David
> or
> Hash[*str.split(/=|,/)]

Oh, right -- or that :-)  Another demonstration of the principle that
as one works on Ruby code it evaporates from the screen, *and* becomes
clearer rather than more cryptic.


David A. Black (removed_email_address@domain.invalid)
Ruby Power and Light, LLC (

"Ruby for Rails" PDF now on sale!
Paper version coming in early May!
This topic is locked and can not be replied to.