I have a cgi that need to accept only numeric values. ie +ve or -ve real numbers.
Is there a quick and easy way to check this. I was trying using a reg exp
if(/^[-0-9][\.0-9]*/) {
do something
}


but this breaks when the number is say --75.4 It still accepts if it has two - signs.

Thanks for your help.
Cheers always!!
Murli



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



Reply via email to