title: Regex to find last space character
body: <p><strong>I am looking for a regex that will give me the index of the last space in a string using javascript.</strong></p>
  
  <p>I was using goolge to find a suitable regex, but no success.
  Even the <a href="https://stackoverflow.com/questions/2464021/regex-to-match-last-space-character">SO-Question Regex to match last space character</a> does not hold a solution because the goal there was to remove more than one character in the end.</p>
  
  <p><strong>What is the correct regex?</strong></p>