From: ariv arasan Date: 2012-11-21T21:54:28+09:00 Subject: check string format i have a string str='{ "first" => "val", "second" => { "a" => "aaa", "b" => "bbbb" }, 3=>"three"}' i want to make an array from the string which should be like arr = ["first => val", "second => { a => aaa , b => bbbb }", "3=>three"] for that first,i want to check the string format, => or => how could i achieve this? main purpose is to make the string as a hash(not by using eval) -- Posted via http://www.ruby-forum.com/.