Right on,
 
I ended up using 
 
'rule' => array('custom', '/^[A-Za-z ]+$/'), and that seems to work.
 
Thanks,
 
Dave

  _____  

From: Maximillian Schwanekamp [mailto:[email protected]] 
Sent: October-19-09 4:32 PM
To: [email protected]
Subject: Re: Regular Expression


On Oct 19, 2009, at 10:41 AM, Dave Maharaj :: WidePixels.com wrote:


I have 'rule' => '/^[a-zA-Z]$/', to allow only letter characters but it does
not seem to be working.
Is there something wrong with this expression?


I think you need to specify how many characters you need.  E.g.
/^[a-zA-Z]+$/ for at least one alpha char.





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to