# Re: How i can to parse string

**URL:** <https://www.ruby-forum.com/t/re-how-i-can-to-parse-string/58846>\
**Category:** Ruby\
**Created:** [April 26, 2006, 3:32pm UTC](https://www.ruby-forum.com/t/re-how-i-can-to-parse-string/58846 "2006-04-26T15:32:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KroegerS\_Simon\_Sext](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/57b2e6/32.png) [@KroegerS\_Simon\_Sext](https://www.ruby-forum.com/u/KroegerS_Simon_Sext)\
**Post date:** [April 26, 2006, 3:32pm UTC](https://www.ruby-forum.com/t/re-how-i-can-to-parse-string/58846/1 "2006-04-26T15:32:27Z")

</div>

> 

or

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

cheers

Simon

---

<div class="post-metadata">

**Author:** ![KroegerS\_Simon\_Sext](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/57b2e6/32.png) [@KroegerS\_Simon\_Sext](https://www.ruby-forum.com/u/KroegerS_Simon_Sext)\
**Post date:** [April 26, 2006, 7:21pm UTC](https://www.ruby-forum.com/t/re-how-i-can-to-parse-string/58846/2 "2006-04-26T19:21:47Z")

</div>

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

–  
David A. Black (removed\_email\_address@domain.invalid)  
Ruby Power and Light, LLC ([http://www.rubypowerandlight.com](http://www.rubypowerandlight.com))

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