ereg to validate decimal
Posted: Mon Nov 22, 2004 2:49 pm
Hi,
I am trying to write a little validation to ensure that numbers are entered to two decimal places.
Here's what I have - but it doesn't seem to be working:
I'm new to ereg, so I think I'm getting something wrong with the decimal.
Thanks!
I am trying to write a little validation to ensure that numbers are entered to two decimal places.
Here's what I have - but it doesn't seem to be working:
Code: Select all
$validBidExpr = "^(ї0-9]{2,3,4,5,6,7,8,9}ї.]?)?ї0-9]{2}$"Thanks!