Thank you LanX, works great but I have realised that in my attempt to simplify the example I have missed a key info i.e. the data blocks are not separated by an empty line but by three lines of text with an empty line above and below. Also the blocks can be more than two.I have updated the question.
|Replies are listed 'Best First'.|
Re^3: Help with parsing a file (updated)
by tybalt89 (Monsignor) on May 29, 2022 at 22:05 UTC