From: Sira PS Date: 2011-04-24T02:05:22+09:00 Subject: How to split dot “.” only before equal “=” I need to split dot only before equal to assign to hash e.g. Project.risksPotentialAfterSum=Pot. aft. result after split should be like this: {Project=>{risksPotentialAfterSum=>Pot. aft.}} for now I use str.split(/[.=]/,2) which is has a problem for the value which comes after equal sign. any ideas? -- Posted via http://www.ruby-forum.com/.