You'll need to escape the period.

$_ =~ /\d+\.\d+/;

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 5:44 PM
To: [EMAIL PROTECTED]
Subject: how to recognize a number with regex?


hi


what do a regex look like that only matches numbers of the format

(the length of the number doesnt matter its the . thats the problem)

1233.1234

or 

1234



martin

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to