| Title |
Test
Find
Pattern Title
|
| Expression |
^-?\d*(\.\d+)?$ |
| Description |
Matches all positive & negative decimal floating point numbers, to any magnitude. Allows empty string. |
| Matches |
4.4 | .4 | -.4 |
| Non-Matches |
. | ... | zero |
| Author |
Rating:
Murray Roke
|
| Source |
|
| Your Rating |
|
Title: Pattern Title
Name: Mike
Date: 6/19/2006 5:26:07 PM
Comment:
Actuality, you should be able to take a whgole number like 5 becuase that is 5.0 but this expression does not allow that. A better expression would be ^-?\d*(\.?\d+)?$ - this will allow for whole number beucase they are also decimal floating point numbers