[此贴子已经被作者于2005-10-20 14:46:25编辑过]
string strlist = "|1|2|";char[] delimiter ={ '|' };string[] strarr = strlist.Split(delimiter, StringSplitOptions.RemoveEmptyEntries);foreach(string str in strarr) Console.WriteLine(str);