struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandeep Gupta" <sandy....@gmail.com>
Subject Re: Validating a Positive Decimal Number
Date Tue, 10 Oct 2006 12:31:37 GMT
The following regular expression should work

[+]?[0-9]*([.][0-9]*)?  for positive floating point numbers and integers as
well

[+]?[0-9]*   for positive integral values.

Hope this helps

- Sandeep

On 10/10/06, Chetan Pandey <cpandey@bluesingapore.com> wrote:
>
> Hi All:
>
>
>
> I my Form I have a Field which expects any value greater than 0.0.
>
>
>
> I cannot find a regular expression for Positive Decimal Number greater
> than
> 0.0. There are many for positive Decimal Number including ZERO.
>
>
>
> Any suggestions please.
>
>
>
> Thanks.
>
>
>
> Chetan Pandey
>
>
>


-- 
Regards,

Sandeep Gupta

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message