用正则表达式匹配@"\s+"代码如下,已经调试过 string cutText = 预设值;
System.Text.RegularExpressions.Regex regex = new System.Text.RegularExpressions.Regex(@"\s+");
System.Text.RegularExpressions.MatchCollection match = regex.Matches(cutText);
int stringLen = match.Count+1;
string[] s = new string [stringLen];
int len = 0;
for(int i=0;i<match.Count;i++)
{
len = i== 0?match[i].Index - len:match[i].Index - match[i-1].Index - match[i-1].Value.Length;
s[i] = cutText.Substring(0,len);
len = len +match[i].Value.Length;
cutText =  cutText.Substring(len);

}
s[stringLen-1] = cutText;结果在 s[] 里面