title: Character set not matching a pattern
body: <p>I'm trying to use a regex to match the following:</p>
  
  <p>I want to capture all characters that are followed by a <code>-</code> and then a numeric character.</p>
  
  <p>So for example, if the string was <code>python-proj-5.0</code> I would want to get <code>python-proj</code>.</p>
  
  <p>I tried <code>[^-0-9]*</code> but it seems that only matches either a <code>-</code> or numeric characters but not a <code>-</code> preceded by numeric characters.</p>