日期:2014-05-17  浏览次数:20793 次

求2个正则
在此先感谢版主上次帮我解决模拟POST请求的问题!

现在还在继续做模拟请求,并已经能post数据和接收,只是返回值是josn数据格式,不会用正则解析.
1.{'Tables':[{'Name':'table1','Rows':[{'rows':'1','FID':'582','Title':'家长教孩子拒绝不合理要求','classid':'3','Expand':'3636','VideoUrl':'1062'},{'rows':'2','FID':'581','Title':'家长协助孩子了解防骗常识','classid':'3','Expand':'3635','VideoUrl':'1061'},{'rows':'3','FID':'580','Title':'家长教孩子如何远离交通伤害','classid':'3','Expand':'3634','VideoUrl':'1060'}]},{'Name':'table2','Rows':[{'count':'<div class="page">\n<a class="current">1</a>\n<a href="javascript:listGet(2,\'3\',\'10\')">2</a>\n<a href="javascript:listGet(3,\'3\',\'10\')">3</a>\n<a href="javascript:listGet(4,\'3\',\'10\')">4</a>\n<a href="javascript:listGet(5,\'3\',\'10\')">5</a>\n<a href="javascript:listGet(6,\'3\',\'10\')">6</a>\n<a href="javascript:listGet(7,\'3\',\'10\')">7</a>\n<span>…</span><a href="javascript:listGet(10,\'3\',\'10\')">10</a>\n<a class="next" href="javascript:listGet(2,\'3\',\'10\')" title="下一页">下一页</a>\n</div>\n','Cont':'28'}]},{'Name':'Table3','Rows':[{'fid':231,'TeachCnt':1,'classid':3,'cnt':null,'plandate':null},{'fid':239,'TeachCnt':1,'classid':3,'cnt':null,'plandate':null},{'fid':261,'TeachCnt':1,'classid':3,'cnt':null,'plandate':null},{'fid':271,'TeachCnt':1,'classid':3,'cnt':null,'plandate':null},{'fid':433,'TeachCnt':1,'classid':5,'cnt':null,'plandate':null},{'fid':534,'TeachCnt':1,'classid':3,'cnt':null,'plandate':null},{'fid':535,'TeachCnt':1,'classid':3,'cnt':null,'plandate':null},{'fid':536,'TeachCnt':1,'classid':3,'cnt':null,'plandate':null},{'fid':537,'TeachCnt':1,'classid':3,'cnt':null,'plandate':null},{'fid':538,'TeachCnt':1,'classid':3,'cnt':null,'plandate':null},{'fid':539,'TeachCnt':1,'classid':3,'cnt':null,'plandate':null},{'fid':578,'TeachCnt':1,'classid':3,'cnt':null,'plandate':null},{'fid':579,'TeachCnt':1,'classid':3,'cnt':null,'plandate':null},{'fid':580,'TeachCnt':1,'classid':3,'cnt':null,'plandate':null},{'fid':581,'TeachCnt':1,'classid':3,'cnt':null,'plandate':null},{'fid':582,'TeachCnt':1,'classid':3,'cnt':1,'plandate':null}]}],'getTable':function(n){return _getTable(n,this);}}

2.{'Name':'','Rows':[{'CourseID':1052,'CourseStatus':1,'TestStatus':1},{'CourseID':1053,'CourseStatus':1,'TestStatus':1},{'CourseID':1054,'CourseStatus':1,'TestStatus':1},{'CourseID':1055,'CourseStatus':1,'TestStatus':1},{'CourseID':1066,'CourseStatus':1,'TestStatus':0},{'CourseID':1056,'CourseStatus':1,'TestStatus':1},{'CourseID':1057,'CourseStatus':1,'TestStatus':1},{'CourseID':1058,'CourseStatus':1,'TestStatus':0},{'CourseID':1059,'CourseStatus':1,'TestStatus':0},{'CourseID':1060,'CourseStatus':1,'TestStatus':0},{'CourseID':1061,'CourseStatus':1,'TestStatus':0},{'CourseID':1062,'CourseStatus':1,'TestStatus':0},{'CourseID':1063,'CourseStatus':1,'TestStatus':0},{'CourseID':1064,'CourseStatus':1,'TestStatus':0},{'CourseID':1065,'CourseStatus':1,'TestStatus':0}]}


求帮助:2个josn数据流解析成 对象 或者 DataTable(第1个josn里面有3个table)