From: Harry Kakueki Date: 2011-04-23T21:04:05+09:00 Subject: Re: Split dot and equa sign by recursive On Fri, Apr 22, 2011 at 7:52 PM, Siratinee Sukachai wrote: > I need to do a function which can split dot and equa by recursive. > But I don't have any ideas to do on recursive. > > This is the example of my strings > > Member.certPm=PM Certification > projects.risks.Index.flash_downloading=Downloading report, please wait.. > > The numbers of dot it is different. I need to split these strings and > set on hashes > > Member => {certPm => PM Certification} > projects => {risks => {Index => {flash_downloading => Downloading > report, please wait..}}} > > Do you have any guide for me to do this? > > -- Do I understand this correctly? You have a string like this, "projects.risks.Index.flash_downloading=Downloading report, please wait.." and you want to produce this, projects => {risks => {Index => {flash_downloading => Downloading report, please wait..}}} Is that what you want to do? Harry