From: Avdi Grimm Date: 2008-08-09T06:38:34+09:00 Subject: Re: hash from string On Wed, Aug 6, 2008 at 12:03 PM, Mage wrote: > eval is easy and unsecure. Regexp is not very simple if you want handle > every special case (nested values etc). You could try eval with a high SAFE level. Or write a quick parser using TreeTop. -- Avdi Home: http://avdi.org Developer Blog: http://avdi.org/devblog/ Twitter: http://twitter.com/avdi Journal: http://avdi.livejournal.com