按空格或回车截取字符串

 var chs = new[] { " ", "
", "
" };
            // 验证wafer ID 最后是否为两个字符
 var wafers = waferIDs.Split(chs, options: StringSplitOptions.RemoveEmptyEntries).Select(t => t.Trim()).ToList();
原文地址:https://www.cnblogs.com/siyunianhua/p/14754202.html