title: Regular expression in c# for input like (integer-anything)
body: <pre><code>string strRegexclass = @"^([0-9]+)\-([a-zA-Z])$";
  </code></pre>
  
  <p>I want to make regular expression which accept input like this (1-class). Any integer value before dash(-) and then must have dash then anything after dash.</p>