title: Validation in cakephp1.3
body: <p>I used this query in model to validate the grade in capital letter</p>
  
  <pre><code>  'grade' =&gt; array(
                   'ruleName' =&gt; array(
                             'rule' =&gt; '/^[A-Z]{1}$/i',
                             'message'=&gt;'You must enter the code'
                                    // extra keys like on, required, etc. go here...
                                ),
                   'ruleName2' =&gt; array(
                            'rule'=&gt; 'isUnique',
                            'on'=&gt; 'create',
                            'message' =&gt; 'This grade is already taken. Please choose a different one.'
                                 ),
                   'ruleName3'=&gt;array(
                            'rule'=&gt;'notEmpty',
                             'message'=&gt;'This field is required'
                               )
                   ),
  </code></pre>
  
  <p>but its not working,like if i give a small letter instead of capital letter ,its entering into the database.So please help me to solve this..</p>
  
  <p>Thanks in advance</p>