Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
^[1-5]$ |
Description |
This matches a single numeric digit between 1 and 5, and is the same as saying ^[12345]$. |
Matches |
1 | 3 | 4 |
Non-Matches |
6 | 23 | a |
Author |
Rating:
Steven Smith
|
Title |
Test
Details
Pattern Title
|
Expression |
^[12345]$ |
Description |
This matches a single numeric digit between 1 and 5, and is the same as saying ^[1-5]$. |
Matches |
1 | 2 | 4 |
Non-Matches |
6 | -1 | abc |
Author |
Rating:
Not yet rated.
Steven Smith
|
Title |
Test
Details
Pattern Title
|
Expression |
^[-+]?\d*$ |
Description |
Matches any integer number or numeric string, including positive and negative value characters (+ or -). Also matches empty strings. |
Matches |
123 | -123 | +123 |
Non-Matches |
abc | 3.14159 | -3.14159 |
Author |
Rating:
Steven Smith
|
Title |
Test
Details
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
|
Title |
Test
Details
Pattern Title
|
Expression |
^[-+]?\d*\.?\d*$ |
Description |
Matches any floating point numer/numeric string, including optional sign character (+ or -). Also matches empty strings. |
Matches |
123 | +3.14159 | -3.14159 |
Non-Matches |
abc | 3.4.5 | $99.95 |
Author |
Rating:
Not yet rated.
Steven Smith
|
Title |
Test
Details
Pattern Title
|
Expression |
^(\d{1,3}'(\d{3}')*\d{3}(\.\d{1,3})?|\d{1,3}(\.\d{3})?)$ |
Description |
This regex match numeric data in the following format: thousands are separated by (') apostrophe, decimal places are separated by dot (.) Maximum three decimal places are not required. It's easy to change to other separators as well. |
Matches |
1'235.140 | 1'222'333.120 | 456 |
Non-Matches |
1234.500 | 78'45.123 | 123,0012 |
Author |
Rating:
Not yet rated.
Dalibor Kalna
|
Title |
Test
Details
Pattern Title
|
Expression |
^\$?(\d{1,3}(\,\d{3})*|(\d+))(\.\d{0,2})?$ |
Description |
From Author: DON'T USE THIS ONE. FIND MY OTHER ONE THAT BLOCKS LEADING ZEROS. My site also couldn't swallow the \d, so I switched to numeric ranges and it worked fine.
KEYWORDS Currency Money Dollar
|
Matches |
$0,234.50 | 0234.5 | 0,234. |
Non-Matches |
$1,23,50 | $123.123 |
Author |
Rating:
Not yet rated.
Tom Persing
|
Title |
Test
Details
Pattern Title
|
Expression |
^\d*[0-9](|.\d*[0-9]|,\d*[0-9])?$ |
Description |
This is permit all decimal number, exclude all alphanumeric caracter |
Matches |
123456.123456 | 123456,123456 | 123456 |
Non-Matches |
123a.123 | 123a,123 | a |
Author |
Rating:
Not yet rated.
Hugues Gauthier
|
Title |
Test
Details
Pattern Title
|
Expression |
(^\d*\.?\d*[1-9]+\d*$)|(^[1-9]+\d*\.\d*$) |
Description |
Accepts only positive decimal values. Zero and negatvie numbers are non-matching. Allows zeros after last non-zero numeric value after decimal place for significant digits. |
Matches |
0.050 | 5.0000 | 5000 |
Non-Matches |
0 | 0.0 | .0 |
Author |
Rating:
Bri Gipson
|
Title |
Test
Details
Pattern Title
|
Expression |
(^-\d*\.?\d*[1-9]+\d*$)|(^-[1-9]+\d*\.\d*$) |
Description |
Accepts only negative decimal values. Zero and positive numbers are non-matching. Allows zeros after last non-zero numeric value after decimal place for significant digits. |
Matches |
-0.050 | -5.000 | -5 |
Non-Matches |
0 | 0.0 | .0 |
Author |
Rating:
Not yet rated.
Bri Gipson
|
Title |
Test
Details
Pattern Title
|
Expression |
^(\d|,)*\.?\d*$ |
Description |
Matches Numeric with Commas and a single decimal point. Also matches empty string. |
Matches |
1,000 | 3,000.05 | 5,000,000 |
Non-Matches |
abc | $100,000 | Forty |
Author |
Rating:
Not yet rated.
Kevin Read
|
Title |
Test
Details
Pattern Title
|
Expression |
^(\d|-)?(\d|,)*\.?\d*$ |
Description |
Input for Numeric values. Handles negatives, and comma formatted values. Also handles a single decimal point |
Matches |
5,000 | -5,000 | 100.044 |
Non-Matches |
abc | Hundred | 1.3.4 |
Author |
Rating:
Kevin Read
|
Title |
Test
Details
Pattern Title
|
Expression |
^([0-9]*|\d*\.\d{1}?\d*)$ |
Description |
Accept only (0-9) integer and one decimal point(decimal point is also optional).After decimal point it accepts at least one numeric .This will be usefull in money related
fields or decimal fields. |
Matches |
.568 | 8578 | 1234567.1234567 |
Non-Matches |
568. | 56.89.36 | 5.3.6.9.6 |
Author |
Rating:
Not yet rated.
sanjayanthan vijayakeerthi
|
Title |
Test
Details
Pattern Title
|
Expression |
^[-]?([1-9]{1}[0-9]{0,}(\.[0-9]{0,2})?|0(\.[0-9]{0,2})?|\.[0-9]{1,2})$ |
Description |
This regular expression will match on a real / decimal / floating point / numeric string with no more than 2 digits past the decimal. The negative sign (-) is allowed. No leading zeroes or commas. It is based on a currency regular expression by Tom Persing. |
Matches |
123 | 123.54 | -.54 |
Non-Matches |
123.543 | 0012 | 1,000.12 |
Author |
Rating:
Not yet rated.
T H
|
Title |
Test
Details
Pattern Title
|
Expression |
^\d{1,8}$|^\d{1,3},\d{3}$|^\d{1,2},\d{3},\d{3}$ |
Description |
Validates numeric input of 99,999,999 to 0 with or without commas. but no decimal places. Very simple, but not bad for a novice. |
Matches |
1000 | 12,345 | 12,345,678 |
Non-Matches |
1.1 | 1,10 | 123,888,888 |
Author |
Rating:
Not yet rated.
Wayne Herndon
|
Title |
Test
Details
Pattern Title
|
Expression |
(^[+]?\d*\.?\d*[1-9]+\d*$)|(^[+]?[1-9]+\d*\.\d*$) |
Description |
Accepts only positive decimal values. Zero and negative numbers are non-matching.Allows zeros after last non-zero numeric value after decimal place for significant digits |
Matches |
01.23 | 0.15 | 0.1568 |
Non-Matches |
0 | -0.18 | .0 |
Author |
Rating:
Not yet rated.
Miguel Gutierrez
|
Displaying page
of
pages;
Items to