日期:2014-05-17 浏览次数:20452 次
protected void Page_Load(object sender, EventArgs e) { string json = "[[\"2008-01-01\",\"2343255\"],[\"2008-02-01\",\"8675464\"]]"; Response.Write("===========转换前==========<br/>"); Response.Write(json); Response.Write("<br/>"); string pattern = @"(?is)((?<=,)"")|(""(?=]))"; Regex reg = new Regex(pattern); json = reg.Replace(json, ""); Response.Write("=============转换后==========<br/>"); Response.Write(json); }