title: Regex How to match everything after last occurance, but not including the matched character
body: <p>I have a string, for example:</p>
  
  <pre><code>black-guitar-12-strings-7584
  </code></pre>
  
  <p>And I am trying to match the set of digits at the end (not always 4 in length).</p>
  
  <p>So far I have:</p>
  
  <pre><code>(-)[^-]*$
  </code></pre>
  
  <p>Which matches the last part but I don't want to include the last hyphen also.</p>
  
  <p>Any ideas? thanks.</p>