using System.Text.RegularExpressions;
using System.Collections.Generic;
const string lines = @"04.15.14
t2010- ll pushback on att pre-pay terms/i sd will send crown renewal terms & pp- explnd crown terms- ll aboard/emailed terms/emailed shannon
had knee replacement- family atty declined renewal 3x? i reqd to speak with atty to determine what is the issue- LL sd he is worth 25M and money not issue- then stated wants more $$- i sd wcb
emailed shannon LL req for increase in rent
pushback- LL reqd ext. terms resent- has 3 alt sites- doesnt want to sell- i sd wll resend terms- he sd wcb 3 weeks/mailed new terms
crown terms to LL- LL indicated has leasehold lease- but with full control- they are reviewing- wcb in a few weeks
t2010- poc sd will have decision about underlying lease extension by eow- had carpel tunnel surg- and hand probs
tt ll- meeting with atty wednesday
poc Ron said family decided not to renew- has plans for land- wont reveal specifics- advised I can cb 1 year for update- i explnd poss relo process- money/lang not issues just plans for land
ll wont renew/t2010- vml- lnm/t1380- na";
public static void Main()
Regex rgx = new Regex(@"\d{2}-\d{2}-\d{4}");
var dates = Regex.Matches(@lines, @"\d{1,2}(/|.)\d{1,2}(/|.)\d{2,4}");
foreach (Match match in dates)
Console.WriteLine("{g.Index} : {g.Value}");
var firstitem = lines.Substring(0,dates[0].Index);
Console.WriteLine("---firstitem------");
Console.WriteLine(firstitem);
for (int i = 0; i < dates.Count-1; i++)
int start = dates[i].Index;
int end = dates[i + 1].Index;
var item = lines.Substring(start, end - start);
Console.WriteLine("---------");
var lastitem = lines.Substring(dates[dates.Count-1].Index);
Console.WriteLine("---lastitem------");
Console.WriteLine(lastitem);