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

Change page:   |    Displaying page 2 of 3 pages; Items 21 to 40
Title Test Details Pattern Title
Expression
^\$?([1-9][0-9]{3,}(\.\d{2})?|(\d{1,3}\,\d{3}|\d{1,3}\,\d{3}(\.\d{2})?)|(\d{1,3}\,\d{3}|\d{1,3}\,\d{3}\,\d{3}(\.\d{2})?)*)?$
Description
Currency which cannot be less than $1000 and lower than a billion.
Matches
$1000 | $1,000,000.00 | 9,999
Non-Matches
999.00 | $1,000,000,000.00 | 5.00
Author Rating: Not yet rated. tim glenn
Title Test Details Strip leading characters from currency
Expression
([^,0-9]\D*)([0-9]*|\d*\,\d*)$
Description
For currency: strips out leading non-numeric characters. Numbers may use a comma for the decimal place, but cannot use anything for the thousands separator.
Matches
123,5 | 123 | ,56 | 0,56 | 123 | €123 | € 123,565 | ,3424234
Non-Matches
$ 012,12 | 1.234 | 1.234,56 |
Author Rating: The rating for this expression. Christopher Vrooman
Title Test Details Currency
Expression
^\$([0]|([1-9]\d{1,2})|([1-9]\d{0,1},\d{3,3})|([1-9]\d{2,2},\d{3,3})|([1-9],\d{3,3},\d{3,3}))([.]\d{1,2})?$|^\(\$([0]|([1-9]\d{1,2})|([1-9]\d{0,1},\d{3,3})|([1-9]\d{2,2},\d{3,3})|([1-9],\d{3,3},\d{3,3}))([.]\d{1,2})?\)$|^(\$)?(-)?([0]|([1-9]\d{0,6}))([.]\d{1,2})?$
Description
Matches number with optional commas and decimal places. Allows only max 7 digits before decimal and max 2 digits after decimal. Does not allow numbers beginning with 0 e.g., $0,234,567 but allows $0.05
Matches
($1,234,567.89) | $1,234,567.89 | $1234567.89 | $-1234567.89
Non-Matches
$1,234,567.890 | $12345678.90 | $023,456.78
Author Rating: Not yet rated. Ali Salman
Title Test Details U.S. Currency Validation
Expression
^\$?\d{1,3}(,?\d{3})*(\.\d{1,2})?$
Description
Just a small pattern to make sure commas are in the rite place (if present). Only allows one decimal to be suffixed with with 1 or 2 digits. Also optional dollar sign may proceed value.
Matches
$1,000,000.00
Non-Matches
43,3.245
Author Rating: The rating for this expression. Lewis Moten
Title Test Details Currency 16,3
Expression
^\$?(([1-9],)?([0-9]{3},){0,3}[0-9]{3}|[0-9]{0,16})(\.[0-9]{0,3})?$
Description
Currency expression, accepts 4 commas and 4 groups of 3 numbers and 1 number before the first comma, this first number will have to be different from zero. It accepts a number of, two or three decimal. It accepts zero numbers after the point. You can change the number of groups and numbers accespts before and after the point.
Matches
1234.23 | 1,234.245 | 1.
Non-Matches
12,12,0.00 | 0,123.99
Author Rating: The rating for this expression. Antonio Avila
Title Test Details Dollar Currency Pattern
Expression
^(([1-9]\d{0,2}(\,\d{3})*|([1-9]\d*))(\.\d{2})?)|([0]\.(([0][1-9])|([1-9]\d)))$
Description
Building on Joe Lynwood's Regex which makes use of a combination of Michael Ash's US Dollar amount and Bri Gipson's eliminating zero input, I've added support for values between 0 and 1. Being relatively new to regex, I hope someone would be able to spot any discrepancies with the code and its supposed function. Edit 1: Corrected mis-match with non-decimal numbers.
Matches
1,234,567.89 | 1234567.89 | 9.99 | 0.34 | 0.10 | 1234
Non-Matches
1,2345,67.89 | 1234,345,678.0 | 0 | 0.00 | 123. | .123
Author Rating: The rating for this expression. Fong C.D.
Title Test Details Regular expression for validating currency input with £ sign
Expression
^(( )*\£{0,1}( )*)\d*(.\d{1,2})?$
Description
This expression is for matching the currency input. The £ is optional. e.g. £12.12, £ 12.12, 12.12, 12.
Matches
£123.00
Non-Matches
$123.00
Author Rating: The rating for this expression. KundanKumar
Title Test Details Currency with two decimals
Expression
^\$\d{1,3}(,?\d{3})*(\.\d{2})?$
Description
Looks for a number which can be optionally comma separated at thousands and may or may not have two decimal places. Tweaking: 1. Replace the \$ symbol with your currency. 2. Toggle , and . as separators (Some European countries follow this convention) 3. Mandate comma separation by removing the ? after ,
Matches
$333,444,444,555.99
Non-Matches
$333,444,444,55
Author Rating: The rating for this expression. Hareesh
Title Test Details Currency
Expression
^((\d{1,3}((,\d{3})*|\d*)(\.{0,1})\d+)|\d+)$
Description
match US currency
Matches
most
Non-Matches
not known
Author Rating: The rating for this expression. mp09
Title Test Details US Currency (Dollar)
Expression
^\$(\d{1,3}(\,\d{3})*|(\d+))(\.\d{2})?$
Description
It should be universal regular expression for US currency.
Matches
$0.342 or $123.00, $1,234,422,345.0
Non-Matches
123
Author Rating: Not yet rated. Kumar Deepak Ranjan
Title Test Details Simple Currency
Expression
^\d+(\.\d{2})?$
Description
A Simple Currency Expression. It will validate the number portion only.
Matches
13.37 | 24 | 0.42
Non-Matches
.25 | 15.2 | 2.507
Author Rating: Not yet rated. Brendan Enrick
Title Test Details Number
Expression
^[-]?([1-9]{1}[0-9]{0,}(\.[0-9]{0,2})?|0(\.[0-9]{0,2})?|\.[0-9]{1,2})$
Description
This regular expression will match on a real / decimal / floating point / numeric string with no more than 2 digits past the decimal. The negative sign (-) is allowed. No leading zeroes or commas. It is based on a currency regular expression by Tom Persing.
Matches
123 | 123.54 | -.54
Non-Matches
123.543 | 0012 | 1,000.12
Author Rating: Not yet rated. Key Sutim
Title Test Details Dutch Currency
Expression
^([\u20AC]?[1-9]\d*\.\d{3}(?:,\d{2})?|[\u20AC]?[1-9]\d*(?:,\d{2})?|[\u20AC]?[1-9]\d*)$
Description
Optional Amount, with optional thousands seperator (using the point) and optional decimal comma. If decimal comma is in string, then 2 trailing digits are required. Also checks for the optional euro sign
Matches
1 | 1,00 | 1.000,00 | €1
Non-Matches
1a | .00,00 | 1,0 | $1
Author Rating: The rating for this expression. Karin Nooteboom
Title Test Details Numeric including commas, decimal, negative, and currency
Expression
^((\$?\-?)|(\-?\$?))([0-9]{1,3},([0-9]{3},)*[0-9]{3}|[0-9]+)?(\.[0-9]*)?$
Description
Matches any number which includes the US currency symbol ($), a negative sign (-), comma separators, and a decimal. It matches an unlimited number of decimal places. It does NOT reject an empty string passed to it. Credit goes to Al Kahler for posting the original expression from http://regxlib.com/REDetails.aspx?regexp_id=70 along with a fix for the decimal place.
Matches
$.01 | 1,234.003 | 834223.1 | $0.01 | -$1.50 | $-50.123
Non-Matches
.0,001 | 1,1.01 | 1E | 5$
Author Rating: The rating for this expression. Ed Hammar
Title Test Details Non localised currency format
Expression
^(\d?)*(\.\d{1}|\.\d{2})?$
Description
Expression to validate currency formatted numbers without the currency symbol
Matches
153 | 33.48 | 786.1 | 1567863483.33
Non-Matches
-123 | 8524.258 | eo45
Author Rating: The rating for this expression. Paul Verhulpen
Title Test Details Currency
Expression
^[+-]? *(\$)? *((\d+)|(\d{1,3})(\,\d{3})*)(\.\d{0,2})?$
Description
Full currency testing, allows up to 2 decimal places. Checks for corect formatting with commas etc, and allows negative amounts
Matches
$ 10.00 -$12 $12 $12,122.90
Non-Matches
--$10 $123,1234.00
Author Rating: Not yet rated. Tom Grieve
Title Test Details Currency amount with or without $ and with commas
Expression
^\$?\d{1,2}\,\d{3}?\,\d{3}?(\.(\d{2}))$|^\$?\d{1,3}?\,\d{3}?(\.(\d{2}))$|^\$?\d{1,3}?(\.(\d{2}))$
Description
Needed to verify a currency amount entered has commas and two decimal spaces to the right. This has a range between 1.99 to the tens of millions. If you want to make the decimal side optional, add a question mark before the final $ in each expression.
Matches
1.99|111,111.99|11,111,111.99
Non-Matches
1.999|1111|1111111|11.9
Author Rating: Not yet rated. dawn schakett
Title Test Details Checking of currency on key down
Expression
^(([1-9]{1}[0-9]{0,5}([.]{1}[0-9]{0,2})?)|(([0]{1}))([.]{1}[0-9]{0,2})?)$
Description
This will allow your app to check currency during events such as key down (set to decimal(8,2) only)
Matches
13 | 13. | 13.1 | 13.11 | 0. | 0.1
Non-Matches
01 | .1 | 0.011
Author Rating: Not yet rated. CL Yeo
Title Test Details currency EURO
Expression
^(0|(([1-9]{1}|[1-9]{1}[0-9]{1}|[1-9]{1}[0-9]{2}){1}(\ [0-9]{3}){0,})),(([0-9]{2})|\-\-)([\ ]{1})(€|EUR|EURO){1}$
Description
Supported symbols are € or EUR or EURO (all case sensitive).
Matches
0,00 € | 1 234 567,89 EUR | 1,-- EURO
Non-Matches
00,00 € | 1234567,89 EUR | 0 555,55 EURO | 2,2 EUR | 2,- EUR
Author Rating: Not yet rated. Juraj Hajdúch (SK)
Title Test Details US Currency
Expression
\$(\d)*\d
Description
This Expression is used to Validate the US curreny.
Matches
$300 | $12900
Non-Matches
$300.50 | $12900.00 | 300 |12900
Author Rating: Not yet rated. Faiz Shaikh
Change page:   |    Displaying page 2 of 3 pages; Items 21 to 40

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