Phillip Oertel wrote:
hi,
i'm not a regex guru myself, but the following regex should work - tabke
a look at my regex test setup ...
Escape the decimal point.
$regex = '/^\d+(\.\d{1,2})?$/';
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (
Phillip Oertel a écrit :
> hi,
>
> i'm not a regex guru myself, but the following regex should work - tabke
> a look at my regex test setup ...
>
>
> $test = array(
> "1",
> "1.",
> "1.2",
> "1.23",
> "1.234",
>
> "1234",
> "1234.",
> "1234.5",
> "1234.56",
>
2 matches
Mail list logo