[thelist] numeric with 2 decimal in javascript regular expres sion
Kowalkowski, Lee (ASPIRE)
lee.kowalkowski at hmrcaspire.com
Tue Sep 27 04:40:53 CDT 2005
> -----Original Message-----
> From: demy more [mailto:dialforpaul at yahoo.co.in]
> Sent: Tuesday, September 27, 2005 10:23 AM
> To: thelist at lists.evolt.org
> Subject: [thelist] numeric with 2 decimal in javascript regular
> expression
>
>
> Hi ,
>
> I am facing a problem regarding java script regular
> expression .
> I need regular expression for numeric field which will
>
> allow me to accept only 2 decimal . ex : 11.11 allowed
>
> but 11.111 not allowed .
> I have given like this
> /^d[0-9.]+$/
> Then how to proceed . it is allowing me any decimal
> number . But I only need 2 decimal .
>
> Can any body help me in this regards
>
> Asit
/^\d+\.\d{2}$/
-LK
===========================================================
Our e-mail domain has now changed from iraspire.com to hmrcaspire.com. Please update your address books.
===========================================================
More information about the thelist
mailing list