Title |
Test
Find
Pattern Title
|
Expression |
^[-+]?\d+(\.\d+)?$ |
Description |
This matches any real number, with optional decimal point and numbers after the decimal, and optional positive (+) or negative (-) designation. |
Matches |
123 | -123.45 | +123.56 |
Non-Matches |
123x | .123 | -123. |
Author |
Rating:
Not yet rated.
Steven Smith
|
Source |
|
Your Rating |
|
Title: miao
Name: cc
Date: 2/22/2018 9:57:38 PM
Comment:
http://www.regexlib.com/REDetails.aspx?regexp_id=117
Title: qs
Name: modi
Date: 2/22/2018 9:56:16 PM
Comment:
www.google.com
Title: 0-prefixed number
Name: Lucian Toza
Date: 12/8/2005 8:51:53 AM
Comment:
try 012
Title: Extra decimal dot
Name: Peter J.
Date: 11/21/2003 6:01:18 PM
Comment:
Try 1.2.3 for instance.