日期:2014-05-18 浏览次数:20722 次
string str = "aa*/bb"; char[] ch = { '*', '/' }; string[] result = str.Split(ch, StringSplitOptions.RemoveEmptyEntries);
------解决方案--------------------
string str = "aa*/bb";
string[] str1 = str.Split(new string[] { @"*/" }, StringSplitOptions.RemoveEmptyEntries);
MessageBox.Show(str1[0] + "\r\n" + str1[1]);