1、直接分割
string[] method1 = text1.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries);
2、正则分割
Regex re = new Regex(@" ");
string[] method2= re.Split(text2);
3、替换后分割,例如替换成@
text3=text3.Replace (" ","@");
method3 = text3.Split('@');