string txt = "{\"ip\": \"127.0.0.1\", \"port\": 80, \"status\": \"NULL\", \"type\": \"ee\", \"arg\": \"admin:123456\"},";
            Match m = Regex.Match(txt, @"""(.*?)"":(.*?),");
            while (m.Success)
            {
                string key = m.Groups[1].Value.Replace("\"", "").Replace(",", ""); ;
                string vule = m.Groups[2].Value;
                if (!dic.ContainsKey(key))
                    dic.Add(key, vule);
                m = m.NextMatch();
            }

 

相关文章:

  • 2022-12-23
  • 2021-08-17
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2021-10-18
  • 2022-12-23
  • 2021-08-03
相关资源
相似解决方案