title: JavaScript RegExp exclude specific file extension and index.js
body: <p>This is my current RegExp:</p>
  
  <pre><code>/^(?!index).*js/gmi
  </code></pre>
  
  <p>This is the list the RegExp is applied to:</p>
  
  <pre><code>test/test.js
  hey/test-bundle.js
  test/test-heybundle.js
  test/index.js
  test/indop.js
  lollipop/testindex.js
  test/test.scss
  test/test.css
  lalilu/hey.yml
  test.js
  </code></pre>
  
  <p>What it should do:</p>
  
  <ul>
  <li>Only match files ending with *.js</li>
  <li>Exclude the filename index.js</li>
  <li>Exclude files ending with "-bundle.js"</li>
  <li>Only match files that are located in a directory (e.g. <code>/test/test.js</code>, not <code>test.js</code>)</li>
  </ul>
  
  <p>I'd really much appreciate any help to get this RegExp to work like expected.</p>