title: RegEx to extract text between last forwardslash and specific string (javascript)
body: <p>I am trying to extract a specific string between the last forward slash and a dot without success. I tried the ones on this solution: <a href="https://stackoverflow.com/questions/39512284/r-regex-for-everything-between-last-backslash-and-last-dot">R regex for everything between LAST backslash and last dot</a></p>
  
  <p>Here is an example of the full string:</p>
  
  <p><code>48494,Test,0000,Color,,,htps://url/test/testing/bb/1/dim/<strong>green</strong>.png</code></p>
  
  <p>I want to extract <code>"green"</code>, which is always between last slash and the last dot. I also tried the following regex:</p>
  
  <p><code>([^\/]+$)</code></p>
  
  <p>But this one selects <em>everything</em> after backslash. I want to remove everything after last dot in order to pick just the color.</p>
  
  <p><strong>EDIT:</strong> This question is different from <a href="https://stackoverflow.com/questions/43638163/get-filename-from-url-and-strip-file-extension">Get Filename from URL and Strip File Extension</a> because I am looking for a regex to use by the match method not replace.</p>
  
  <p>I can't use replace, because the whole system is prepared to use match operator and can't be changed, since a lot of rules already exist for other scenarios using regex expression with match. The engine uses match, not replace.</p>