Re: How i can to parse string


#1

or

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

cheers

Simon


#2

Hi –

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

David

or

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

Oh, right – or that :slight_smile: 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


David A. Black (removed_email_address@domain.invalid)
Ruby Power and Light, LLC (http://www.rubypowerandlight.com)

“Ruby for Rails” PDF now on sale! http://www.manning.com/black
Paper version coming in early May!