using System.Collections.Generic;
public static void Main()
string x = @"================ 09.01.2017 [8:51:11] created by VBScript ================
============================= END =============================
================ 16.01.2017 [9:49:09] created by VBScript ================
============================= END =============================
================ 18.01.2017 [8:43:50] created by VBScript ================
============================= END =============================";
string[] stringSeparators = {"\n"};
List<string> lines = x.Split(stringSeparators, StringSplitOptions.None).ToList();
var myQuery = lines.Select((l,idx) => new {idx =idx, body = l}).Where(m => m.body.StartsWith("=") && m.body.EndsWith("="));
foreach(var m in myQuery)
Console.WriteLine(m.idx + " : " + m.body);