title: How can I do alphanumeric with space regex model validation in CakePHP?
body: <p>I have a user registration form and I only want the user to specify their first and last name (i.e. Donalg Doonsberry). If the user doesn't provide their name in this fashion, the input will be rejected. I thought something like this would work for my regex user validation in cakephp: </p>
  
  <pre><code>  'name'=&gt;array('Name has to be comprised of letters.
                  '=&gt;array('rule'=&gt;array('custom', '/[A-Za-z ]+/')
             )),
  </code></pre>