title: How to have SED remove all characters between a hypen and the file extension
body: <p>I have been trying with no luck to change this </p>
  
  <pre><code>'Simple' week 1-117067638.mp3
  </code></pre>
  
  <p>into this</p>
  
  <pre><code>'Simple' week 1.mp3
  </code></pre>
  
  <p>However when I use the command <code>sed 's/\(-\).*\(.mp3\)//'</code> I get </p>
  
  <pre><code>'Simple' week 1
  </code></pre>
  
  <p>How do I keep my file extension? If you could explain the command you use it would be great so that I can learn from this instead of just getting an answer.</p>