[Javascript] RegExp

Dan Costea costea.dan at ssi-schaefer.ro
Thu Jul 24 09:09:31 CDT 2003


    Hi,

I have the regular expresion that is matching a positiv float number:

var oReg = /^((\d+(\,\d*)?)|((\d*\,)?\d+))$/;

How should I modify it to match a positiv float between 0 and 999? (for example, to match: 125 or 251,9 or 5).

Thanks in advance,
Dan Costea
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20030724/28e5bab2/attachment.htm>


More information about the Javascript mailing list