title: Zend Framework 2 Form With Password
body: <p>I'm using zend framework 2, how can I force the user has set a password of 8 characters min, but both letters and numbers?
  This is my code:</p>
  
  <pre><code>$this-&gt;add(array(
          'name' =&gt; 'password',
          'attributes' =&gt; array(
              'type'        =&gt; 'password',
              'id'          =&gt; 'password',
              'class'       =&gt; 'span12 noradius',
              'placeholder' =&gt; 'Password'
          ),
          'options' =&gt; array(
              'label' =&gt; 'Password :'
          )
      ));
  </code></pre>