C#提取双引号中的字符串

 public static void Main(string[] args)
        {         
            string strtmp = "123\"456\"qqq\"789\"777\"";
            string[] strTmps = strtmp.Split('"');
            for (int i = 0; i < strTmps.Length; i++)
            {
                if (strtmp.Length > 1)
                {
                    Console.WriteLine(strTmps[i] + "");
                }
                Console.ReadLine();
            }
        }

 

posted @ 2017-03-07 15:20  刘靖凯  阅读(3931)  评论(0编辑  收藏  举报