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: 32 regular expressions found.

Change page:   |    Displaying page 1 of 2 pages; Items 1 to 20
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: The rating for this expression. Samir AZZA
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: The rating for this expression. brent stineman
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: The rating for this expression. Andres Garcia
Title Test Details Pattern Title
Expression
(^\$(\d{1,3},?(\d{3},?)*\d{3}(\.\d{1,3})?|\d{1,3}(\.\d{2})?)$|^\d{1,2}(\.\d{1,2})? *%$|^100%$)
Description
Matches either an explicitly input percentage or dollar amount, variety of formats of currency borrowed from another example on this board. This is useful when you want to prompt the user to specify either dollars or percent using only one field, and want to validate the entered text is one or the other.
Matches
$1000.00 | 100% | 50%
Non-Matches
%100 | .5% | 100
Author Rating: Not yet rated. Marc Ziss
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{0,4}(?:\.\d{0,2})? | [-]\d{0,2}(?:\.\d{0,2})? )[%]{0,1}$
Description
validates Percents, where Positive numbers are allowed over 100% (in this case up to 9999), but where Negative percents must not go to or below -100% This also allows for the &quot;%&quot; to be present or missing. This was used to validate sales Growth Percents (allows for large positive growth, but you could not go negative for more than 100%).
Matches
1234.56% | 23.32 | -42.23%
Non-Matches
12345% | -200% | 5.1234%
Author Rating: The rating for this expression. Jeff Przylucki
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]{0,2}(\.[0-9]{1,2})?$|^-?(100)(\.[0]{1,2})?$
Description
Matches a negative or positive percentage between 0 and 100 (inclusive). Accepts up to 2 decimal places.
Matches
12.34 | 100.00 | -2.1
Non-Matches
101.1 | 10.123 | 100.10
Author Rating: The rating for this expression. Andrei Bozantan
Title Test Details Pattern Title
Expression
^((100)|(\d{0,2}))$
Description
Matches any positive integer (and blank) between 1 and 100 useful for validating input of a percentage, or nothing.
Matches
100 | 0 | 99
Non-Matches
101 | 1x | -1
Author Rating: The rating for this expression. Murray Roke
Title Test Details Percent Expression
Expression
^\s*(\d{0,2})(\.?(\d*))?\s*\%?\s*$
Description
Basically this matches into variables for percentages.. It allows as much whitespace before and after the expression. $1 = Percent before decimal, $2 = percentage after decimal inc decimal, $3 = percentage after decimal. Disallowed anything past 99.99999 repeating percent. No negative percents either. Easy to implement but I do not need it.
Matches
10.5%, 1%, 1, .5, .0555%
Non-Matches
100%, -1%, -1, 200, 200.1
Author Rating: Not yet rated. Mike Willbanks
Title Test Details Percentage Match
Expression
^100$|^\d{0,2}(\.\d{1,2})? *%?$
Description
It matches % value from 0 - 100. The two decimal places are used.
Matches
100 | 99.99 | 00 | 20.99
Non-Matches
101 | 22.1111
Author Rating: The rating for this expression. Amir Raza
Title Test Details Percent regexp
Expression
^100$|^\s*(\d{0,2})((\.|\,)(\d*))?\s*\%?\s*$
Description
Percent regulaar expression.
Matches
100 1.25 25,8%
Non-Matches
456 -8 7r ,
Author Rating: The rating for this expression. cassandra
Title Test Details Decimal numbers
Expression
^[+-]?\d+(\.\d{1,4})? *%?$
Description
An expression for .NET regular expression validation controls intended to facilitate 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
123 | 256.89 | 2% | 0.2% | 25% | 0.1 | 0 | +1.9% | -2
Non-Matches
.1 | %1 | 1.0 | 2,345
Author Rating: The rating for this expression. Mirza Muhammad Saleem
Title Test Details Numeric Range
Expression
^[0-9]%?$|^1[0-9]%?$|^2[0-9]%?$|^3[0-5]%?$|^[0-9]\.\d{1,2}%?$|^1[0-9]\.\d{1,2}%?$|^2[0-9]\.\d{1,2}%?$|^3[0-4]\.\d{1,2}%?$|^35%?$
Description
A range of numbers 0-35 optionally including a percent sign and 2 position decimal.
Matches
32.34%, 32.34, 32, 32%
Non-Matches
32.345%, 36, .34
Author Rating: The rating for this expression. Tadd Stuart
Title Test Details Percentages
Expression
^100(\.0{0,2}?)?$|^\d{0,2}(\.\d{0,2})?$
Description
Matches percentages from 0-100 inclusive with two decimal places.
Matches
0 | 100 | 100.00 | 45.45
Non-Matches
101 | -5 | 45.456
Author Rating: The rating for this expression. Dan Santee
Title Test Details Percentage
Expression
^(^(100{1,1}$)|^(100{1,1}\.[0]+?$))|(^([0]*\d{0,2}$)|^([0]*\d{0,2}\.(([0][1-9]{1,1}[0]*)|([1-9]{1,1}[0]*)|([0]*)|([1-9]{1,2}[0]*)))$)$
Description
This pattern is designed to allow user to enter percentage values.
Matches
100.00000000,0033.0000,45.55000,45.01
Non-Matches
45.020,0100.00,15.006
Author Rating: Not yet rated. vitthal Shinde
Title Test Details Percentage with scale
Expression
^((\d{0,1}[0-9](\.\d{0,1}[0-9])?)|(100))$
Description
Allow Percentage with optional scale (max length of 2) between (00.00 and 100)
Matches
00.00 | 00 | 99.99 | 99.5 | 100
Non-Matches
99. | 100.1
Author Rating: Not yet rated. Mohamed Ahmed
Title Test Details Percentage
Expression
^[0]*?(?<Percentage>[1-9][0-9]?|100)%?$
Description
it matches percentage from 1 to 100%. It ignores 0 or 0%. It only support integer matching.
Matches
1% | 99% | 00099% | 99
Non-Matches
101% | 0%
Author Rating: The rating for this expression. Manish
Title Test Details Numbers
Expression
^((?:\+|\-|\$)?(?:\d+|\d{1,3}(?:\,\d{3})*)(?:\.\d+)?(?:[a-zA-Z]{2}|\%)?)$
Description
Here's another one for numbers. Any kind of number. Money $$$, percentage %, ect. Commas are optional and must be properly formatted.
Matches
$1,000,000.00 | 100% | 12345.67890
Non-Matches
$$10.00 | 10%% | 1234,5678, | 123.456.789
Author Rating: The rating for this expression. tedcambron
Title Test Details Percentage
Expression
^(100(?:\.0{1,2})?|0*?\.\d{1,2}|\d{1,2}(?:\.\d{1,2})?)$
Description
generate percentage with 2 values after point
Matches
3.00|100.00|45
Non-Matches
101|4.678|425.876
Author Rating: Not yet rated. Tayyaba Nosheen
Change page:   |    Displaying page 1 of 2 pages; Items 1 to 20

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