Suppose I have a file with lines that contain the following lines:
...cat dog lorem ipsum...
...cat lizard ...
...cat bird ...
...cat dog ...
I want to write a regular expression that matches strings that catshouldn't dog:
...cat lizard ...
...cat bird ...
How can i do this?
source
share