string str = "1
2 222";
string[] strlist = str.Split("
".ToCharArray(),StringSplitOptions.RemoveEmptyEntries);
string[] temp = str.Split(new char[] { '
', '
' }, StringSplitOptions.RemoveEmptyEntries);
原文链接:https://blog.csdn.net/yal179/java/article/details/38689363