I am struggling to find some GREP to find lines before a string when I need to exclude the string itself from the selection.
In this example, I need to find the 2 lines before "Fox", but exclude "Fox" itself.
Apple
Banana
Carrot
Duck
Egg
Fox
Giraffe
"((.*(\n)){2})Fox" returns "Duck Egg Fox", so I just need to exclude "Fox" from the selection.