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

Please support RegExLib Sponsors

Sponsors

Advanced Search

Keywords

Category

Minimum Rating

Results per Page

Search Results: 49 regular expressions found.

Change page:   |    Displaying page 1 of 3 pages; Items 1 to 20
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: Not yet rated. Mr M
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
^[-+]?\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: Not yet rated. 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*\.?((25)|(50)|(5)|(75)|(0)|(00))?$
Description
This is a pattern to search and verify that a decimal number ends with a 25, 50, 75, 0 or 00. It does match for a nothing after decimal also but I guess thats ok !!
Matches
0.25 | .75 | 123.50
Non-Matches
.77 | 1.435
Author Rating: Not yet rated. narsi v
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
^\d{0,2}(\.\d{1,2})?$
Description
This regular expression validates that the data entered is a number with a maximum of two integers and two decimals and a minimum of one integer or one decimal.
Matches
99.99 | 99 | .99
Non-Matches
999.999 | 999 | .999
Author Rating: Not yet rated. Jaime Borges
Title Test Details Pattern Title
Expression
^100$|^[0-9]{1,2}$|^[0-9]{1,2}\,[0-9]{1,3}$
Description
Percentage with 3 number after comma.
Matches
12,654 | 1,987
Non-Matches
128,2 | 12,
Author Rating: Not yet rated. Samir AZZA
Title Test Details Pattern Title
Expression
(?!^0*$)(?!^0*\.0*$)^\d{1,5}(\.\d{1,3})?$
Description
This regular expression validates a number NOT 0, with no more than 5 places ahead and 3 places behind the decimal point.
Matches
1 | 12345.123 | 0.5
Non-Matches
0 | 0.0 | 123456.1234
Author Rating: Not yet rated. Michael Trefry
Title Test Details Pattern Title
Expression
^[+-]?([0-9]*\.?[0-9]+|[0-9]+\.?[0-9]*)([eE][+-]?[0-9]+)?$
Description
A regular expression that matches numbers. Integers or decimal numbers with or without the exponential form.
Matches
23 | -17.e23 | +.23e+2
Non-Matches
+.e2 | 23.17.5 | 10e2.0
Author Rating: The rating for this expression. Erik Pettersson
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
^[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*[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*[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*$
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
^[-+]?[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{0,2}(\.\d{1,4})? *%?$
Description
An expression for .NET regular expression validation controls intended to faciliate the entry of percentage values both a whole numbers or as their decimal representations. Also compatible with the default US format for string formatting for percentages. Recommend that if you intended accept a value passing this express that you strip the percentage signs and take measures to ensure that any whole values are converted to percentages.
Matches
4.0% | 0.45 | .0345
Non-Matches
123 | %12
Author Rating: Not yet rated. brent stineman
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?)|(([-+]?\d+\.?\d*)|([-+]?\d*\.?\d+))|(([-+]?\d+\.?\d*\,\ ?)*([-+]?\d+\.?\d*))|(([-+]?\d*\.?\d+\,\ ?)*([-+]?\d*\.?\d+))|(([-+]?\d+\.?\d*\,\ ?)*([-+]?\d*\.?\d+))|(([-+]?\d*\.?\d+\,\ ?)*([-+]?\d+\.?\d*)))$
Description
This allows a sequence of real numbers to be added, separated by a comma (required) and a space (optional). Based pretty heavily on an expression by Steven Smith on this site.
Matches
8.0 | 8.0,-.38,+8.9 | 8.0, +8.8, 0.09
Non-Matches
+ | . | a,b, c
Author Rating: Not yet rated. Paul Auger
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: Not yet rated. Vitaly Kompot
Change page:   |    Displaying page 1 of 3 pages; Items 1 to 20

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