title: Check the end of a string
body: <p>How do I check if a string ends with <strong><em>-A</em></strong> followed by <strong><em>a number</em></strong>? 
  <br /><br /><br />
  For Example:</p>
  
  <p><strong>EX-A1</strong> >>> Match. Ends with <strong><em>-A</em></strong> followed by <strong><em>1</em></strong></p>
  
  <p><strong>BLA-A21</strong> >>> Match. Ends with <strong><em>-A</em></strong> followed by <strong><em>21</em></strong></p>
  
  <p><strong>DGUA5</strong> >>> Does not match. Does not end with <strong>-A</strong> followed by <strong>a number</strong></p>
  
  <p><strong>CDL-A1A</strong> >>> Does not match. Does not end with <strong>-A</strong> followed by <strong>a number</strong>
  <br /><br /></p>
  
  <p>What I tried:</p>
  
  <pre><code>Regex.Match(myString, "-A\\d+").ToString();
  </code></pre>
  
  <p>The problem with this is that it matches <strong>-A</strong> followed by <strong>a number</strong> anywhere in the string. I need to check if <strong>-A</strong> followed by <strong>a number</strong> is at the end of the string.</p>