I am searching for a regex expression to match couple of lines over the matched line. For example:
ABCDEFGHADEFGH
ABCDEFGHADEFGH
ABCDEFGHDEFGHABCDEFGH
ABCDEFGHDEFGHABCDEFGH
ABCDEFGHABCDEFGHABCDEFGH
ABCDEFGHABCDEFGHABCDEFGH
XXXXXXXX
I would like to capture the 2 lines above the XXXXXXXX.
Any help would be appreciated. Note: with Python using library re