using System; using System.Linq; public class Test { public static void Main() { var text = @"some information 27: some other information some information 28: some other information some information 29: some other information"; foreach (var line in text.Split('\n')) { Console.WriteLine(line.Substring(line.IndexOf(":") + 1).Trim()); } } }