I have a text file that has data printed in the following way
---
1A
1B
1C
---
---
2A
2B
2C
---
---
3A
3B
3C
.
.
3n
---
NA
.
.
Nn
---
essentially lines of text encased around lines of --- to ---.
I am looking to extract the contents between the last occurrence of --- to ---, so far using regex I have have managed to narrow it down to (?<=---)(.*?)(?=---) however this finds all occurrences and I would only like the last.