title: regex match all not PDF files
body: <p><code>preg_match('/\.(?!pdf)$/', $file)</code></p>
  
  <p>I want to match all files except pdf files</p>
  
  <pre><code>path/file.jpg # match
  path/file.png # match
  path/file.pdf # not match
  </code></pre>