Peter Rabbitson wrote:
>> Simplest is change the {2} to {1,2} for all your entries. Now you
>> mush have from 1 to 2 digits. Wags ;)
> 
> 
> I think what he really wants is to throw a fit when there is a
> leading zero for which your solution won't cut it. Here is how I see
> it: 
> 
> $field =~ /^[1-9]\d?\.[1-9]\d?\.[1-9]\d?$/

        Correct. I missed read the msg.
Wags ;)


*******************************************************
This message contains information that is confidential
and proprietary to FedEx Freight or its affiliates.
It is intended only for the recipient named and for
the express purpose(s) described therein.
Any other use is prohibited.
*******************************************************


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to