title: Javascript Regex - How to extract last word before path to image
body: <p>I want to use regex to extract the last word from a file path.  For example, I have:
  /xyz/blahblah/zzz/abc-blah/def-xyz-<strong>color</strong>.jpg</p>
  
  <p>I want to extract the "<strong>color</strong>" out of the path.  The path color have different syntax.  The only thing that is consistent is the ending where it is always -color.jpg where color would be any [a-z] word.</p>
  
  <p>Is there an elegant way to do this?  </p>
  
  <p>I would really appreciate any help here.  Thanks</p>