c# split三种用法

string str = "aaa,bbb,ccc!ddd"; string[] array1 = str.Split(','); string[] array2 = str.Split(new char[] { ',', '!' }); string[] array3 = Regex.Split(str, ",ccc!", RegexOptions.IgnoreCase);
posted @ 2017-03-05 00:00  PhilXu  阅读(113)  评论(0编辑  收藏  举报