Tagged Fiddles
- 1Revisions2Forks
Currency between $1 and $1B with optional cents
/^[1-9](\d{0,8})?(\.\d{0,2})?$/gm100000 1.50 0.99 123456789.99 - 1Revisions1Forks
Currency between $1 and $1B with optional cents
/^[1-9](\d{0,4})?(\.\d{0,2})?$/gm10000.00 1.50 0.99 123456789.99 - 1Revisions0Forks
Currency between $1 and $1B with optional cents
/^[1-9](\d{0,8})?(\.\d{0,2})?$/gm10:00AM to 3:00PM $1000B - 1Revisions0Forks
Currency
/^\$?[0-9]{1,}(|[.]{1}[0-9]{1,2})$/Currency Regex upto 1 Billion with 2 decimal points.#+ should match 32423 999.00 3242.32 1000000000.00 999 1.1 0.12 100000000000000 10000000000.00 $1 $10 $1111.2 $1111.22 #- should not match .12 . a 11.1111111111111 34223.376 $1111.2a $1111.222 - 1Revisions5Forks
Matches US Currency
/\$?[0-9]{1,3}(?:,?[0-9]{3})*(?:\.[0-9]{2})?/igMatches US Currency and commas must be in the correct location.$200,213,213.92 200.43 200.93 $204.50 5.a - 1Revisions7Forks
Matches US Currency
/\$?[0-9]{1,3}(?:,?[0-9]{3})*(?:\.[0-9]{2})?/igMatches US Currency and commas must be in the correct location.$200,213,213.92 200.43 200.93 $204.50 - 1Revisions3Forks
Matches US Currency
/\$?[0-9]{1,3}(?:,?[0-9]{3})*(?:\.[0-9]{2})?/igMatches US Currency and commas must be in the correct location.$200,213,213.92 200.43 200.93 $204.50 - 1Revisions2Forks
Simple US currency
/\$?([\d,]{0,7}(.[\d]{2})?)/giMatches US currency up to $999,999. (With comma, can be extended)$2,003.24 203.24 $20.324 //doesn't match $19 $19. //doesn't match //To extend the amount simply change the '7' to something greater. It represents the number of decimal places allowed in the dollar amount. - 1Revisions1Forks
Simple US currency
/\$?([\d,]{0,7}(.[\d]{2})?)/giMatches US currency up to $999,999. (With comma, can be extended)$9999.9999