[thelist] regex: 0-1 range VS optional

Brian Cummiskey brian at hondaswap.com
Thu Feb 15 12:57:38 CST 2007

Matt Warden wrote:
> The way I'd format it:
> ^[dD]?[0-9]{1,7}[a-zA-Z]?$
> But, is "0" really a valid part number?
Thanks Matt.  No, 0 isn't valid so to speak, but this is for a sql 
injection prevention.  If 0 is entered, they would simply get an 'item 
not found' message.

More information about the thelist mailing list