RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Browse Expressions by Category

107 regular expressions found in this category!

Expressions in category: Numbers

Change page:   |    Displaying page 5 of 6 pages; Items 81 to 100
Title Test Details Pattern Title
Expression
^\d?\d'(\d|1[01])"$
Description
Height notation for feet (') and inches(")
Matches
6'3" | 5'11" | 10'0"
Non-Matches
9 Feet 2 inches | 5'12" | 5'2 1/2"
Author Rating: Not yet rated. Michael Ash
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 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
(^[0]{1}$|^[-]?[1-9]{1}\d*$)
Description
This is a regular expression I used to validate negative and positive WHOLE numbers, including 0.
Matches
0 | 123 | -123
Non-Matches
001 | -012 | -002
Author Rating: Not yet rated. Les Portugal
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
(^(((\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
^(?!\u00a2) #Don't allow cent symbol \p{Sc}? #optional unicode currency symbols (?!0,?\d) #don't allow leading zero if 1 or more unit (?:\d{1,3} # 1 to 3 digits (?:([, .])\d{3})? # if there is a separator it must be followed by 3 digits (?:\1\d{3})* # if the is more than two groups the same separtor must but used, it must be followed by 3 digits |(?:\d+)) # more than 3 digit with no comma separator ((?!\1)[,.]\d{2})?$ # option cents
Description
Internationally capable currency formats. It is NOT local aware. Should be modify for local specific validations. More detail at http://blogs.regexadvice.com/mash/archive/2004/06/08/1246.aspx
Matches
$9,876,543.21 | €9 876 543,21 | €9.876.543,21
Non-Matches
9.876.543.21 | 9,876,543,21 | 9 876 543 21
Author Rating: Not yet rated. Michael Ash
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*[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
^\-?\(?([0-9]{0,3}(\,?[0-9]{3})*(\.?[0-9]*))\)?$
Description
Match a positive or negative decimal value with any precision and scale. Allows for left-padded zeroes, commas as group separator, negative sign (-) or parenthesis to indicate negative number.
Matches
0.123 | (1234.123) | -01,200
Non-Matches
2.3.123 | 1,23.45
Author Rating: Not yet rated. Rich Franzmeier
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
^\-?[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{1,3},(\d{3},)*\d{3}(\.\d{1,3})?|\d{1,3}(\.\d{3})?)$
Description
Dollar Amount
Matches
2&651.50 | 987.895
Non-Matches
25$%787*
Author Rating: Not yet rated. Snikwad Kcirtap
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 Currency
Expression
^\$( )*\d*(.\d{1,2})?$
Description
Validates US currency but allows for spaces between the dollar sign and dollar amount. If there is cents the period validates to two decimal places
Matches
$100.00 | $100 | $10.25
Non-Matches
100. | $10.233 | $10.
Author Rating: Not yet rated. Vincent Faller
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
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
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
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
Change page:   |    Displaying page 5 of 6 pages; Items 81 to 100

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials