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/.