citys["bj"] = {bj:"Beijing"};
citys["han"] = {haikou:"Haikou",hainan:"Hainan",sanya:"Sanya",wzs:"Wuzhishan"};
要:
"bj" => array("bj"=>"Beijing");
"han" => array("haikou"=>"Haikou","hainan"=>"Hainan","sanya"=>"Sanya","wzs"=>"Wuzhishan");
謝謝!
更新:我希望在一個一步一個正則表達式來解決這個問題。 – Cynial 2011-04-01 10:11:43
你嘗試了一些東西,你可以發佈它嗎? – 2011-04-01 10:13:47
任何理由用regex具體解決這個問題嗎? – zerkms 2011-04-01 10:18:54