正则表达式怎么截取js数组里面的数据
求给我告诉帮忙,正则表达式怎么截取js数组里面的数据,谢谢!!
string SpHtml = UrlConn.PostDocument("http://info.310win.com/jsData/matchResult/2011-2012/s36.js?version=2012081615");
string[] mStrings = SpHtml.Split('[');
textBox1.Text = mStrings[0];
string aa = "";
Regex regex = new Regex(@"=(?<value0>.*?)]];", RegexOptions.IgnoreCase);
MatchCollection matchs = regex.Matches(SpHtml);
Regex regex2 = new Regex(@"""(?<value0>.*?)""", RegexOptions.IgnoreCase);
MatchCollection matchs2 = regex2.Matches(matchs[0].Value);
for (int i = 0; i < matchs2.Count; i++)
{
aa += matchs2[i].Value;
}
textBox1.Text = aa;
一直进步到循环,aa是空值,求各位高手帮忙解决一下,我对正则表达式不熟,谢谢!!!