{\"rmsg\":\"1\"}{\"continuous\":\"41\"}我想获取到   1和41。。
还有那个1有可能是其他的数字比如说:1000、100什么的。。

解决方案 »

  1.   

    {\"rmsg\":\"1\"}{\"continuous\":\"41\"}
    这不是JSON字符串吗
    {\"rmsg\":\"1\",\"continuous\":\"41\"}
      

  2.   

    你这个应当是有规则的吧
    可以用哪个正则 取
    或者按照你的规则 的 key value取
    我觉得不是你贴出来这样你最好能把这个结果的来源 贴出来
      

  3.   

    为什么不直接用json解析,而要截取?
                string str = "{\"rmsg\":\"1\"}{\"continuous\":\"41\"}";
                Regex reg = new Regex(@"\d+");
                foreach (Match m in reg.Matches(str))
                    Console.WriteLine(m.Value);