tao wang wrote:
> hi,
> 
>  I'm trying to write a script to match a pattern like
> this: 1.10
> 
>  I wrote [\d.]+, but this also match with pattern ...
> , which has no number in it. Could somebody help me
> with it?  I'm new to perl and scripts. thanks a lot.

        /^\d+\.\d+/ which says anchor at beginning with mulitple numbers
then a decimal point then multiple digits again.  You could place a $ at end
of the set(ie /^\d+\.\d+$/ ) if you are allowing only this setup to entered.

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]

Reply via email to