最外层中括号正则 30分拿走
dataArr = [['1002307','MissYang',7.54,1.07,7.46,7.57,7.76,7.53,27629.83,21135567,1.34,3.08,0.39], ['20032307','MissZhang',7.54,1.07,7.46,7.57,7.76,7.53,27629.83,21135567,1.34,3.08,0.39]];indexdataArr = [];NewQuoteListPage.GetData(dataArr,indexdataArr);
我要取出第一个分号前的最外层中括号中的内容 正则怎么写啊 大家赐教下
------解决方案--------------------
Regex reg = new Regex(@"(?<=^\[)[^;]+(?=\];)");