I have a large text file (~100MB) that need to be parsed to extract information. I would like to find an efficient way of doing it. The file is structured in block:
Mon, 01 Jan 2010 01:01:01
Token1 = ValueXYZ
Token2 = ValueABC
Token3 = ValuePQR
...
TokenX = Value123
Mon, 01 Jan 2010 01:02:01
Token1 = ValueXYZ
Token2 = ValueABC
Token3 = ValuePQR
...
TokenY = Value456
Is there a library that could help in parsing this file? (In Java, Python, any command line tool)
Edit: I know the question is vague, but the key element is not the way to read a file, parse it with regex, etc. I was looking more in a library, or tools suggestions in terms of performance. For example, Antlr could have been a possibility, but this tool loads the whole file in memory, which is not good.
Thanks!