@LarsFeilberg
Use below code to split for your requirements
system.Text.RegularExpressions.Regex.Split(YourInputStringVariable,“\n\s+”)