title: Regex for any string not ending on .js
body: <p>This has been driving me nuts. I'm trying to match everything that doesn't end in <code>.js</code>. I'm using <code>perl</code>, so <code>?&lt;!</code> etc. is more than welcome. </p>
  
  <h2>What I'm trying to do:</h2>
  
  <h3>Do match these</h3>
  
  <pre><code>mainfile
  jquery.1.1.11
  my.module
  </code></pre>
  
  <h3>Do <strong>NOT</strong> match these</h3>
  
  <pre><code>mainfile.js
  jquery.1.1.11.js
  my.module.js
  </code></pre>
  
  <p>This should be an insanely simple task, but I'm just stuck. I looked in the docs for both <code>regex</code>, <code>sed</code>, <code>perl</code> and was even fiddling around for half an hour on regexr. Intuitively, <a href="http://regexr.com/39nvt" rel="noreferrer">this example</a> (<code>/^.*?(?!\.js)$/</code>) should do it. I guess I just stared myself blind.</p>
  
  <p>Thanks in advance.</p>