Re: Quickform nonzero rule bug (?)

From: Date: Wed, 25 Jun 2003 15:45:00 +0000
Subject: Re: Quickform nonzero rule bug (?)
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-17707@lists.php.net to get a copy of this message
On Wednesday, June 25, 2003, at 11:07 AM, David Sklar wrote:
I think /^-?[1-9][0-9]*$/ is clearer if the name of the rule is "nonzero" but if you don't want to change it (and you're right, it is easy to use 'regex' instead) then just make sure it's clear in the documentation what the "nonzero" rule does.
Just out of curiosity, what is the point of this validation? I only ask because I've seen people use this to validate us zipcodes, which does not work (there are some that begin with zero). George -- George Schlossnagle -- Principal Consultant -- OmniTI Computer Consulting, Inc. -- +1.410.872.4910 x202 -- 1024D/1100A5A0 1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0

« previous php.pear.dev (#17707) next »