title: JS RegEx for all file links except PDFs
body: <p>I'm trying to match all href attributes in a HTML document that contain links to a specific folder, that aren't PDFs. I'm having trouble getting it to match, I have one that gets all PDFs:</p>
  
  <pre><code>var regexPDF = new RegExp('href=[\'|"](assets/.*?\.pdf)?[\'|"]','gi');
  </code></pre>
  
  <p>But my attempts to exclude PDFs haven't got me very far. Is there a way to do what I'm after, or am I better just matching all files then using a conditional statement to check if it's a PDF? Ta!</p>
  
  <p>Darren </p>