in reply to term in last line of flatfile

You could reverse your test and match only what you are looking for : a quoted string , a comma, and a date.

this would exclude all lines that don't match anywhere not just at the end. This is a "Good Idea" because the list of thing you don't what could be infinite and the things you do want should be very short.