using System.Text.RegularExpressions; using Core.Entities; using FuzzySharp; namespace Core.Parsers; public class EventOccurrenceParser { private FileSystemInfo _txtFile; private ICollection _events; public EventOccurrenceParser(FileSystemInfo txtFile, ICollection events) { _events = events; _txtFile = txtFile; } private Regex _re = new ( @"" + // @"(?^[^#].*)\s" + @"(?February|March|April|May|June|July)\s" + @"(?\d{1,2});?\s" + @"(?.*)" ); private readonly Regex _timeRe = new(@"(?\d{1,2}):?(?\d{2})?\s?(?(?:a|p)\.?m\.?)"); private readonly Regex _timeLocationRegex = new(@"(?