Hi,

I have to validate a double field, which can be
negative or positive, has max 4 digits in integer and
max 2 digits after decimal, 
I have the following regex which handles some cases
but need help to make it work in all casses

\b[\d]?[\d]?[\d]?[\d]?\b[\.,]?[\d]?[\d]?
it works in
1234.56
123.45
2334
0.34
but does not work 
.34

and also i want it work for
-123.45
+234.45

Can any one suggest a way to modify expression or
write it in better way

Ashish



__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to