|
Posted by Stephen Leaf on 09/20/05 01:08
On Monday 19 September 2005 09:03 am, Shaun wrote:
> Hi,
>
> I am trying to implement a regular expression so that I have a number
> between 0.00 and 1.00. the following works except I can go up to 1.99
>
> $regexp = "/^[0-1]{1}.[0-9]{2}/";
>
> Can anyone help here please?
>
> Thanks
$regexp = "/^(0\.[0-9]{2}|1\.00)/";
that should work :)
Navigation:
[Reply to this message]
|