title: c# Regex to match end of string?
body: <p>I need help to generate regex so that it will match any string which has following detail correct:</p>
  
  <ol>
  <li>String should end with bracket and only numbers inside it.</li>
  <li>End bracket should appear only once at the end of line and not any
  where else.</li>
  <li>Any characters are allowed before bracket start</li>
  <li>No characters are allowed after bracket end</li>
  <li>String should contain only 1 set of brackets with numbers, i.e. no double brackets like (( or ))</li>
  </ol>
  
  <p>I have tried this <code>.\([0-9]+\)$</code> but this is not what i required.</p>
  
  <p>For example:</p>
  
  <p>Following string should match:</p>
  
  <pre><code>asds-xyz (1)
  asds+-xyz (12)
  as@ds-xyz (123)
  </code></pre>
  
  <p>Following strings should not be matched:</p>
  
  <pre><code>asds-xyz ((1)
  asds-xyz ((12sdf))
  (123) asds-xyz
  xyz ((2)
  XYX (1))
  XYZ (1)(2)
  xyz(1)BXZ
  xyz(1)BXZ(2)
  </code></pre>