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(); } }

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM