title: Regular expression for accepting alphanumeric characters (6-10 chars) .NET, C#
body: <p>I am building a user registration form using C# with .NET.
  I have a requirement to validate user entered password fields.
  Validation requirement is as below.</p>
  
  <ol>
  <li>It should be alphanumeric (a-z , A-Z , 0-9)</li>
  <li>It should accept 6-10 characters (minimum 6 characters, maximum  10 characters)</li>
  <li>With at least 1 alphabet and number (example: <code>stack1over</code>)</li>
  </ol>
  
  <p>I am using a regular expression as below.</p>
  
  <pre><code>^([a-zA-Z0-9]{6,10})$
  </code></pre>
  
  <p>It satisfies my first 2 conditions.
  It fails when I enter only characters or numbers.</p>