title: Yii rules() match failing
body: <p>I've had a working registration/update model, I wanted to expand on my models so I added in a regex to the password field. I have checked the regex works online and even my client side validation shows it works, but the model refuses to save now. I'm not really sure why, could anyone help me out please?</p>
  
  <pre><code>        return array(
          array('firstName, lastName, email, password', 'required'),
          array('firstName', 'length', 'max'=&gt;45),
          array('lastName', 'length', 'max'=&gt;80),
          array('email', 'length', 'max'=&gt;120),
          // email must be valid email
          array('email', 'email'),    
          // email must be unique
          array('email', 'unique'),
          // Regex for password
          array('password','match', 'pattern'=&gt;'/^[a-z0-9_-]{7,20}$/i', 
              'message'=&gt;'The password must be between 7 and 20 characters
               long'),
  
  
          array('password', 'length', 'min'=&gt;7, 'max'=&gt;64),
          array('date_modified', 'safe'),
          array('active, date_modified', 'default', 'setOnEmpty' =&gt; true, 'value' =&gt; null),
          array('id, first_name, last_name, email, pass, active, date_created, date_modified, live', 'safe', 'on'=&gt;'search'),
  
      );
  </code></pre>
  
  <p>Thanks </p>
  
  <p>Jonny</p>