Title |
Test
Find
Pattern Title
|
Expression |
^\d*\.?\d*$ |
Description |
Matches any unsigned floating point number/numeric string. Also matches empty strings. |
Matches |
123 | 3.14159 | .234 |
Non-Matches |
abc | -3.14159 | 3.4.2 |
Author |
Rating:
Not yet rated.
Steven Smith
|
Source |
|
Your Rating |
|
Title: mod to avoid matching of empty strings
Name: tiger
Date: 5/14/2011 11:12:55 AM
Comment:
The modification ^\d*\.?\d+$ does not match empty strings.
Title: modifyed mask
Name: rip_pit
Date: 6/8/2009 6:27:10 AM
Comment:
It was a good start for making my own regexp. TY
here is mine :
^\d+(\.?\d+){0,1}$
Matches : 123 | 3.14159
Non-Matches : abc | -3.14159 | 3.4.2 | .234 | 234. |
Title: Doesn't match correctly
Name: Murray
Date: 5/26/2004 9:16:51 PM
Comment:
This matches . which is not good
Title: developer
Name: joe
Date: 4/22/2004 5:26:38 PM
Comment:
Allows decimal w/ no numbers after the decimal. Gave it a 4/5 rating.