Though I'd just update the start of this question for people that come across it in future. Regex was not the optimal solution for my particular problem, but trying to regex complicated and separated patterns (my logic from the start) in one go wasn't ideal. The answer to the question as stated would be to try separate regexes I think, and 'filter out' the stuff needed. My file could be worked on with the Though I'd just update the start of this questi