in reply to Re^3: match a word and delete last line
in thread match a word and delete last line

That works. I was missing (?: ). Thank you.
  • Comment on Re^4: match a word and delete last line