'rule' = '/^[1-9][0-9]*$/' // Start-(1 to 9) exactly one - ( 0 to 9 ) from none to any 'allowEmpty' => true
On Sun, Mar 9, 2008 at 10:16 PM, b logica <[EMAIL PROTECTED]> wrote: > > On Sun, Mar 9, 2008 at 8:14 PM, b logica <[EMAIL PROTECTED]> wrote: > > On Sun, Mar 9, 2008 at 12:31 PM, Deane <[EMAIL PROTECTED]> wrote: > > > > > > > A field needs to either be (1) a valid number, or (2) nothing. So, in > > > effect, "You don't have to enter this, but if you do, it better be a > > > number." > > > > > 'rule' => '/[0-9]?/, > 'allowEmpty' => true > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
