[Javascript] RegExp for positive integer

Dan Costea costea.dan at ssi-schaefer.ro
Thu May 23 11:52:36 CDT 2002


    Hi,

I want to define a regular expression for a positive integer. So I wrote:

var rePosInteger = /^(+)?\d+$/;

but I receive the error: "Expected quantifier". Can you tell me where is my mistake?


Thank you, Dan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20020523/bb8758fa/attachment.htm>


More information about the Javascript mailing list