I want to search for lines containing a certain word, book
for example, and doesn't not contain car
before it.
I've tried writing it like so :
[?!car].*book
But it doesn't work, so in these lines :
this car is a book
this is a book
book car
The first should not match, the other 2 should. What am I doing wrong?