Regex matching line not containing the string
I'd like to select a lines with does not contain a word SCREEN. I tried the following regex (?<!SCREEN).+
but it seems not to work - selects all the lines. Why doesn't it work?
The short answer: ^((?!SCREEN).)*$
This is inspired by https://stackoverflow.com/questions/406230/regular-expression-to-match-a-line-that-doesnt-contain-a-word which contains a full explanation