Hello,
I am trying to wrap my head around the feasability of parsing a log file with a single RegEx in .NET
What is making it difficult is the log file has items that can (but don't always) span multiple lines and that each log file may actually contain multiple 'logs'. Example format:
log: event 1 event 2 additional information event 3 log: event 1 additional information more additional information event 2 additional information
The necessity here being able to distinguish which events belong to which log and have the additonal information also captured. I was able to, of course, just grab events... I have been unable to grab events with additional information, let alone grouping them in to captures by log:
I would appreciate information rather than being handed a solution, so I can learn. I guess my question is: should this be possible? It's already been done with a parser I was just trying to discover alternative methods.