107 regular expressions found in this category!
Displaying page
of
pages;
Items to
| Title |
Test
Details
Pattern Title
|
| Expression |
^[0-9]*(\.)?[0-9]+$ |
| Description |
it will check for the +ve decimal numbers |
| Matches |
1 | 123 | 132.132 |
| Non-Matches |
1.2.2 | -123 |
| Author |
Rating:
himraj love
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^(\-)?1000([.][0]{1,3})?$|^(\-)?\d{1,3}$|^(\-)?\d{1,3}([.]\d{1,3})$|^(\-)?([.]\d{1,3})$ |
| Description |
allows positive and negative none-to-3-decimal values between -1000.000 and 1000.000 |
| Matches |
123.456 | -0.125 | -1000.000 |
| Non-Matches |
123.4567 | -0.1b5 | -1000.001 |
| Author |
Rating:
gregg durishan
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^[0-9]+$ |
| Description |
Validate a string to see if it contains a number / integer |
| Matches |
1234567890 | 1234567890 | 1234567890 |
| Non-Matches |
http://none | http://none | http://none |
| Author |
Rating:
Mr M
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^(\d|,)*\d*$ |
| Description |
matches 0 and all positive integers only. will accept comma formatting only. |
| Matches |
1234 | 1,234 | 1,234,567 |
| Non-Matches |
1234.0 | -1234 | $1234 |
| Author |
Rating:
Donald Schneider
|
| Title |
Test
Details
Pattern Title
|
| Expression |
(^(\+?\-? *[0-9]+)([,0-9 ]*)([0-9 ])*$)|(^ *$) |
| Description |
This is my basic phone number verification. it allows a + - , signs digits, spaces and blank entry |
| Matches |
+0335456 545 545 | -5465 545 | 5456465 5454,545 |
| Non-Matches |
fsd54df 54 |
| Author |
Rating:
Vitaly Kompot
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^[1]$|^[3]$|^[4]$|^[6]$|^[1]0$ |
| Description |
This will match single numbers,the first block [1346] checks for single digits of 1, 3, 4 or 6, could easily by [1-5] as well. The second block [10] checks for 10 only.
This matches inclusively. |
| Matches |
1 | 4 | 10 |
| Non-Matches |
13 | 2 | 0 |
| Author |
Rating:
Josh Crosby
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^(0*100{1,1}\.?((?<=\.)0*)?%?$)|(^0*\d{0,2}\.?((?<=\.)\d*)?%?)$ |
| Description |
Percentage (From 0 to 100) |
| Matches |
100% | 100 | 52.65% |
| Non-Matches |
-1 | -1% | 100.1% |
| Author |
Rating:
Andres Garcia
|
| 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{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*\.?\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:
Not yet rated.
Bri Gipson
|
| 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,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*$ |
| Description |
Accepts an unsigned integer number. Also matches empty strings. |
| Matches |
123 | 000 | 43 |
| Non-Matches |
asbc | -34 | 3.1415 |
| Author |
Rating:
Not yet rated.
Steven Smith
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^[1-9]{1}$|^[1-4]{1}[0-9]{1}$|^50$ |
| Description |
Match any number between 1 and 50, no characters, no empty sets, and not zero. Match numbers greater than 1 and less than 51, no spaces, no characters. |
| Matches |
1 | 23 | 50 |
| Non-Matches |
0 | 111 | xyz |
| Author |
Rating:
Not yet rated.
Michael Gaertner
|
| Title |
Test
Details
Pattern Title
|
| Expression |
\$[0-9]?[0-9]?[0-9]?((\,[0-9][0-9][0-9])*)?(\.[0-9][0-9]?)?$ |
| Description |
|
| Matches |
$1,456,983.00 | $1,700.07 | $68,944.23 |
| Non-Matches |
$20,86.93 | $1098.84 | $150. |
| Author |
Rating:
Not yet rated.
Snikwad Kcirtap
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^\$?(\d{1,3},?(\d{3},?)*\d{3}(\.\d{0,2})?|\d{1,3}(\.\d{0,2})?|\.\d{1,2}?)$ |
| Description |
This expression will validate for US Currency with a wide range of input. Using other exps found on this site, I built this one to fix 2 main problems I was finding:
1-a space or blank entry is non-matching
2-use of .9 in place of .90 will match (this is for those people like me who hate to type and if I put .9 I mean .90
Hope this helps others save a little time. I feel I was pretty thorough in testing, but if you find something wrong, please post it. -Thanks |
| Matches |
$1.99 | 1.99 | .99 |
| Non-Matches |
$10.999 | 100,00.99 | blank |
| Author |
Rating:
Not yet rated.
Kirk Fuller
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^\d* \d*\/{1}\d*$|^\d*$ |
| Description |
This expression is used to validate fractions (entered as strings). It will also accept non-fractional entries. Simple, but effective. |
| Matches |
100 | 1 1/2 | 1232 5/8 |
| Non-Matches |
a 1/2 | abc | a b/c |
| Author |
Rating:
Not yet rated.
Kevin Hillabolt
|
| Title |
Test
Details
Pattern Title
|
| Expression |
\$[0-9]?[0-9]?[0-9]?((\,[0-9][0-9][0-9])*)?(\.[0-9][0-9])?$ |
| Description |
|
| Matches |
$28,009,987.88 | $23,099.05 | $.88 |
| Non-Matches |
$234,5.99 |
| Author |
Rating:
Not yet rated.
yahnique barrett
|
| 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
|
Displaying page
of
pages;
Items to