字符串的问题
有一个字符串 "cell:aaacell:bbbcell:ccc "
如何将这个字符串变成这个数组{ "aaa ", "bbb ", "ccc "},就是按照 "cell: "分割
------解决方案--------------------string s = "cell:aaacell:bbbcell:ccc ";
string[] temp = s.Replace( "cell ", " ").Split(new char[] { ': ' }, StringSplitOptions.RemoveEmptyEntries);
Console.WriteLine(temp.Length);
------解决方案--------------------try
string test = "cell:aaacell:bbbcell:ccc ";
string[] result = test.Split(new string[] { "cell: " }, StringSplitOptions.RemoveEmptyEntries);