On Wed, Sep 18, 2002 at 05:49:48PM -0700, Timothy Johnson wrote: > > You'll need to escape the period. > > $_ =~ /\d+\.\d+/;
If you want it to match "1234" as well, that would be $_ =~ /\d+(\.\d+)?/; or $_ =~ /^\d+(\.\d+)?$/; if you don't want it to match "ab1234c", etc. -- Michael -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]