107 regular expressions found in this category!
Displaying page
of
pages;
Items to
| Title |
Test
Details
Pattern Title
|
| Expression |
^1?[1-9]$|^[1-2]0$ |
| Description |
Matches a whole number between 1 and 20 inclusively |
| Matches |
1 | 11 | 20 |
| Non-Matches |
0 | 21 |
| Author |
Rating:
Not yet rated.
Daniel Pickles
|
| 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 |
(?!^0*$)(?!^0*\.0*$)^\d{1,5}(\.\d{1,2})?$ |
| Description |
validates to 5 digits and 2 decimal places but not allowing zero |
| Matches |
12345.12 | 0.5 |
| Non-Matches |
123456.12 | 1.234 | .1 |
| Author |
Rating:
Not yet rated.
Paul Ashton
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^\d{1,7}$ |
| Description |
Positive Whole number matched from 0 to 9999999. Only 7 digits length is allowed. |
| Matches |
1234567 | 9999999 | 1 |
| Non-Matches |
12345678 | 9999.99 | -1234 |
| Author |
Rating:
Not yet rated.
Prashant Nayak
|
| Title |
Test
Details
Pattern Title
|
| Expression |
(?n:(^\$?(?!0,?\d)\d{1,3}(?=(?<1>,)|(?<1>))(\k<1>\d{3})*(\.\d\d)?)$) |
| Description |
Regular expression for validating a US currency string field. Matches an unlimited number of digits to the left of an optional decimal point. Digits to the left of the decimal point can optionally be formatted with commas, in standard US currency format. If the decimal point is present, it must be followed by exactly two digits to the right. Matches an optional preceding dollar sign. Uses regex lookahead to preclude leading zeros and to match the optional formatting comma. |
| Matches |
$3,023,123.34 | 9,876 | 123456.78 |
| Non-Matches |
0.002 | $01.00 | ###1.00 |
| Author |
Rating:
Not yet rated.
Jerry Schmersahl
|
| 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*\.?\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
|
Displaying page
of
pages;
Items to