title: codeigniter + require letters and numbers in password
body: <p>I'd like to use form validation to require a password that has BOTH alpha and numeric characters. Here's what I've come up with so far:</p>
  
  <pre><code>$this-&gt;form_validation-&gt;set_rules('password', 'Password', 'required|matches[passconf]|min_length[8]|alpha_numeric');
  </code></pre>
  
  <p>The issue is that "alpha_numeric" requires that the password only contain letters or numbers, it doesn't require both. Going for the stronger password option here.</p>