private void Test() { string stmpStr = "1,2,3,4,5,6,7,8,9"; string mark = ","; string[] res = Split(stmpStr, mark); foreach (string next in res) { Console.Write(next + " \r\n"); } } /// <summary> /// 字符串拆分函数 /// </summary> public static string[] Split(string p_input, string p_mark) { string[] arr = System.Text.RegularExpressions.Regex.Split(p_input, p_mark); return arr; }
by: 发表于:2018-01-24 09:45:38 顶(0) | 踩(0) 回复
??
回复评论