using System; using System.Text.RegularExpressions; public class Test { public static void Main() { string data = "some statement\n"+ "token\n"+ "content1\n"+ "some other statement\n"+ "some othe statement 2\n"+ "token\n"+ "content2\n"+ "continutes\n"+ ".....\n"; Regex r = new Regex("(?<=\\ntoken\\n).*"); Match m = r.Match(data); int matchCount = 0; while (m.Success) { Console.WriteLine("Match"+ (++matchCount) + " = '" + m.Value + "'"); m = m.NextMatch(); } } }