title: Cut off extension of filename
body: <p>I have a list of filenames like</p>
  
  <pre><code>index.min.html
  index.dev.html
  index.min.js
  index.dev.js
  There.are.also.files.with.multiple.dots.and.other.extension
  </code></pre>
  
  <p>I want to cut off the extensions of the filenames, but the problem is that I can only use <code>match</code> for this task.</p>
  
  <p>I tried many regular expressions looking like <code>"index.min.html".match( /^((?!:(\.[^\.]+$)).+)/gi );</code> to select the filename without the last dot and extension, but they selected either the hole filename, nothing or the part before the first dot. Is there a way to select only the filename without extension?</p>