I would like to find the first unique occurrence of a match within a file. In the example data below, I would like to find the first occurrence of each Chunk
Chunk 1
some text
second line of random text
Chunk 2
some text
second line of random text
Chunk 3
some text
second line of random text
Chunk 1
some text
second line of random text
Chunk 3
some text
second line of random text
Chunk 2
some text
second line of random text
Chunks[1-8], will return all the instances of the matches, I just want the first time each unique Chunk number is listed. Regex will work, so I can use in Notepad++ and eventually incorporate into a python script. I'd also like to return the unique match, along with the "second line of random text" after each unique match
So what I would like to see is
Chunk 1 (first occurrence)
second line of random text
Chunk 2 (first occurrence)
second line of random text<br>
Chunk 3 (first occurrence)
second line of random text