There are some notes on useful regular expressions
Looking for lines that don’t contain a word
Stack Overflow has the answer here
Want to match lines without “notpresent”?
Removing duplicate lines in VS Code
Use this regular expression:
Along with a replacement of
$1, and all duplicate lines are removed. Really handy!