Can someone help me write a regex that will accept number but NO COMMAS.
Yes to
123456.78
No to
123,456.78
Thanks!
Phil
> Can someone help me write a regex that will accept number but NO COMMAS.
>
[quoted text clipped - 3 lines]
> No to
> 123,456.78
Hi Phil,
Do you need it for the RegularExpressionValidator control?
Try this one
^\d+(\.\d\d)?$
Hope it works
Alexey Smirnov - 20 Dec 2007 19:44 GMT
> > Can someone help me write a regex that will accept number but NO COMMAS.
>
[quoted text clipped - 13 lines]
>
> Hope it works
If the digits after the decimal point are always there:
^\d+\.\d\d$
pvong - 20 Dec 2007 19:53 GMT
Yes and this is perfect!!!!
Thanks!
>> Can someone help me write a regex that will accept number but NO COMMAS.
>>
[quoted text clipped - 13 lines]
>
> Hope it works