title: Regex: how to remove optional suffix
body: <p>Examples:</p>
  
  <pre><code>kids-and-babies
  kids-girls-1224
  beauty
  dresses-281
  christmas-gifts-for-him-3130
  </code></pre>
  
  <p>Target outputs would be:</p>
  
  <pre><code>kids-and-babies
  kids-girls
  beauty
  dresses
  christmas-gifts-for-him
  </code></pre>
  
  <p>I need to remove the trailing number and dash, if it is present. I get to removing that suffix if present but then I'm stuck with the trailing dash.</p>