<p>How do I write a regular expression to find all lines containing 665 and not having .pdf</p>

<p>I can't seem to find how to do not in regex.  This is for Notepad++ syntax if it matters.</p>

<p>Thanks</p>

The feature you'r looking for is look ahead patterns
```
```
665(?!.*\.pdf)
```
```