107 regular expressions found in this category!
Displaying page
of
pages;
Items to
| Title |
Test
Details
Pattern Title
|
| Expression |
(^(((\d)|(\d\d)|(\d\d\d))(\xA0|\x20))*((\d)|(\d\d)|(\d\d\d))([,.]\d*)?$) |
| Description |
For who use a space as thousands separator like french, deutsch .... |
| Matches |
1 200 | 1 241 588.14567 | 123 |
| Non-Matches |
az | 1254.456 | 1234 |
| Author |
Rating:
Not yet rated.
krest krest
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^[-+]?[0-9]\d{0,2}(\.\d{1,2})?%?$ |
| Description |
Required and regular expression validator. For supporting
-999.99 to +999.99 . Positive and Negative integer/ decimal validations. Percentage sign is also supported. Will not allow empty strings. Can increase/decrease the range as you need. |
| Matches |
12.3 | 123 | -123.45 |
| Non-Matches |
- | 10.1234 | -1234 |
| Author |
Rating:
Not yet rated.
Error Reporter
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^\-?[0-9]{1,3}(\,[0-9]{3})*(\.[0-9]+)?$|^[0-9]+(\.[0-9]+)?$ |
| Description |
Formatted Number with "," as thousand separator and "." as decimal separator. now accept numbers without separators of thousands. |
| Matches |
10,000,000.123 | 3.14159265 |
| Non-Matches |
2.7,1828183 |
| Author |
Rating:
Not yet rated.
German Gonzalez
|
| 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
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^(0)$|^([1-9][0-9]*)$ |
| Description |
This regular expression matches on postive whole numbers and 0. Whole numbers that are left padded with 0's are not a match. |
| Matches |
12 | 0 | 1200 |
| Non-Matches |
-12 | 0012 |
| Author |
Rating:
Not yet rated.
T H
|
| Title |
Test
Details
Unsigned Byte type
|
| Expression |
(0|(\+)?([1-9]{1}[0-9]{0,1}|[1]{1}[0-9]{0,2}|[2]{1}([0-4]{1}[0-9]{1}|[5]{1}[0-5]{1}))) |
| Description |
Will match an unsigned byte, from range 0 to 255 |
| Matches |
0 | 10 | 127 | 255 |
| Non-Matches |
-10 | -1 | +0 | -0 | 256 |
| Author |
Rating:
Not yet rated.
João Batista Neto
|
| Title |
Test
Details
Byte type
|
| Expression |
^(0|[-]{1}([1-9]{1}[0-9]{0,1}|[1]{1}([0-1]{1}[0-9]{1}|[2]{1}[0-8]{1}))|(\+)?([1-9]{1}[0-9]{0,1}|[1]{1}([0-1]{1}[0-9]{1}|[2]{1}[0-7]{1})))$ |
| Description |
Not just a number, a byte type. Will match any number from range -128 to 127. |
| Matches |
-128 | 127 | 0 | 1 | -10 |
| Non-Matches |
-129 | 128 | -0 | +0 |
| Author |
Rating:
Not yet rated.
João Batista Neto
|
| Title |
Test
Details
Short type
|
| Expression |
^(0|[-]{1}([1-9]{1}[0-9]{0,3}|[1-2]{1}[0-9]{1,4}|[3]{1}([0-1]{1}[0-9]{3}|[2]{1}([0-6]{1}[0-9]{2}|[7]{1}([0-5]{1}[0-9]{1}|([6]{1}[0-8]{1})))))|(\+)?([1-9]{1}[0-9]{0,3}|[1-2]{1}[0-9]{1,4}|[3]{1}([0-1]{1}[0-9]{3}|[2]{1}([0-6]{1}[0-9]{2}|[7]{1}([0-5]{1}[0-9]{1}|([6]{1}[0-7]{1}))))))$ |
| Description |
Short type, will match a short number from range -32768 to 32767. |
| Matches |
-32768 | -10 | 0 | 10 | 32767 |
| Non-Matches |
+0 | -0 | -32769 | 32768 |
| Author |
Rating:
Not yet rated.
João Batista Neto
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^\$[+-]?([0-9]+|[0-9]{1,3}(,[0-9]{3})*)(\.[0-9]{1,2})?$ |
| Description |
This expression is little tricky since the $ sign is includeded in the
expression itself. So whenever you want to make use of the expression be
sure to prepend $ sign to the value if it's not present. |
| Matches |
$-1 | $-1.0 | $1,234.42 |
| Non-Matches |
anything that doesn't start with $ | $.13 | $2. |
| Author |
Rating:
Not yet rated.
Chandrasing Patil
|
| Title |
Test
Details
Int type
|
| Expression |
(0|[1-9]{1}[0-9]{0,8}|[1]{1}[0-9]{1,9}|[-]{1}[2]{1}([0]{1}[0-9]{8}|[1]{1}([0-3]{1}[0-9]{7}|[4]{1}([0-6]{1}[0-9]{6}|[7]{1}([0-3]{1}[0-9]{5}|[4]{1}([0-7]{1}[0-9]{4}|[8]{1}([0-2]{1}[0-9]{3}|[3]{1}([0-5]{1}[0-9]{2}|[6]{1}([0-3]{1}[0-9]{1}|[4]{1}[0-8]{1}))))))))|(\+)?[2]{1}([0]{1}[0-9]{8}|[1]{1}([0-3]{1}[0-9]{7}|[4]{1}([0-6]{1}[0-9]{6}|[7]{1}([0-3]{1}[0-9]{5}|[4]{1}([0-7]{1}[0-9]{4}|[8]{1}([0-2]{1}[0-9]{3}|[3]{1}([0-5]{1}[0-9]{2}|[6]{1}([0-3]{1}[0-9]{1}|[4]{1}[0-7]{1}))))))))) |
| Description |
Will match any integer from range -2147483648 to 2147483647. |
| Matches |
-2147483648 | -100 | 0 | 100 | 2147483647 |
| Non-Matches |
-2147483649 | -0 | +0 | 2147483648 |
| Author |
Rating:
Not yet rated.
João Batista Neto
|
| 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 |
^(
100(?:\.0{1,2})?
|
0*?\.\d{1,2}
|
\d{1,2}(?:\.\d{1,2})?
)%
$ |
| Description |
Matches a percentage between 0 and 100 (inclusive). Accepts up to 2 decimal places. |
| Matches |
0% | 100% | .17% |
| Non-Matches |
101% | -17 | 99.006% |
| Author |
Rating:
Not yet rated.
Darren Neimke
|
| 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 |
^[-+]?[1-9]\d*\.?[0]*$ |
| Description |
This will check if a number is an integer. Positive integers are all the whole numbers greater than zero: 1, 2, 3, 4, 5, ... . Negative integers are all the opposites of whole numbers: -1, -2, -3,-4, -5, ... . Zero is not a whole number with either a positive or negative value, and is not an interger. Null or Empty values are not intergers. |
| Matches |
10 | -10 | +10.00 |
| Non-Matches |
0 | -10.50 | 10.50 |
| Author |
Rating:
Not yet rated.
Chuck Scholton
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^[+]?\d*$ |
| Description |
This re was used for set numbers only!
Somente numeros são requeridos! |
| Matches |
0123456789 | 1234 | 1 |
| Non-Matches |
1.0?& | a1 | 2a- |
| Author |
Rating:
Not yet rated.
Ramon Durães
|
| 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 |
^((4\d{3})|(5[1-5]\d{2}))(-?|\040?)(\d{4}(-?|\040?)){3}|^(3[4,7]\d{2})(-?|\040?)\d{6}(-?|\040?)\d{5} |
| Description |
Credit card validator for AMEX, VISA, MasterCard only. Allows spaces, dashes, or no separator between digit groups according to the layout (4-6-5 for AMEX, 4-4-4-4 for Visa and Mastercard) |
| Matches |
3711-078176-01234 | 4123 5123 6123 7123 | 5123412361237123 |
| Non-Matches |
3711-4123-5123-6112 |
| Author |
Rating:
Not yet rated.
Rick Spiewak
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^(([+]\d{2}[ ][1-9]\d{0,2}[ ])|([0]\d{1,3}[-]))((\d{2}([ ]\d{2}){2})|(\d{3}([ ]\d{3})*([ ]\d{2})+))$ |
| Description |
Swedish phone numbers according to SIS standard |
| Matches |
+46 8 123 456 78 | 08-123 456 78 | 0123-456 78 |
| Non-Matches |
+46 08-123 456 78 | 08 123 456 78 | 0123 456 78 |
| Author |
Rating:
Not yet rated.
Martin Henningsson
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^\$?(\d{1,3},?(\d{3},?)*\d{3}(\.\d{1,3})?|\d{1,3}(\.\d{2})?)$ |
| Description |
Expression to handle US currency entry in .NET. Handy for regular expression validation controls where the user can be entering in a currancy value but you can't control explict entry values. Will accept a wide variety of values that can be easy cast to a double via the CDbl function. Expression is also compatible with default US string format for currency. |
| Matches |
10000 | 10,000 | $1,000.00 |
| Non-Matches |
0.002 | x.0 |
| Author |
Rating:
Not yet rated.
brent stineman
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^(?=.*[1-9].*$)\d{0,7}(?:\.\d{0,9})?$ |
| Description |
Allows up to seven digits to the left and up to nine digits to the right of an optional decimal place.
Leading zeros on the left of the decimal are accepted.
Only positive values are accepted. |
| Matches |
1 | 0123456.123456789 | .123456789 |
| Non-Matches |
.0123456789 | 0.0 | -1 |
| Author |
Rating:
Not yet rated.
Bri Gipson
|
Displaying page
of
pages;
Items to