title: REGEX: Capture Filename from URL without file extension
body: <p>I am trying to create a Javascript Regex that captures the filename without the file extension.  I have read the other posts here and <em>'goto this page:</em> <a href="http://gunblad3.blogspot.com/2008/05/uri-url-parsing.html" rel="nofollow noreferrer">http://gunblad3.blogspot.com/2008/05/uri-url-parsing.html</a>' seems to be the default answer. This doesn't seem to do the job for me.  So here is how I'm trying to get the regex to work:</p>
  
  <ol>
  <li>Find the last forward slash '/' in the subject string.</li>
  <li>Capture everything between that slash and the next period.</li>
  </ol>
  
  <p>The closest I could get was : <strong>/([^/]<em>).\w</em>$</strong>  Which on the string <strong>'<a href="http://example.com/index.htm" rel="nofollow noreferrer">http://example.com/index.htm</a>'</strong> exec() would capture <strong>/index.htm</strong> and <strong>index</strong>.  </p>
  
  <p>I need this to only capture <em>index</em>.</p>