摘要:
string a = "a1a2a3a4"; Regex reg1 = new Regex(@"]+>([^]+)]+>", RegexOptions.IgnoreCase);//此用于取一个时,不是集合时应用。 string str = reg1.Match(a).Groups[1].Value; ... 阅读全文
摘要:
StringBuilder builder=new StringBuilder(); builder.AppendLine("{"); builder.AppendLine("\"key1\":\"value1\","); builder.AppendLine("\"key2\":\"value2\","); builder.AppendLine("\"key3\":\"value3\",");. 阅读全文