Regular Expressions 101

Community Patterns

billions and billions of $$$

1

Regular Expression
PCRE (PHP <7.3)

%
[+-]?[0-9]{1,3}(?:,?[0-9]{3})*\.[0-9]{2}
%
g

Description

optional commas with 2 digit cents

Submitted by bob - 8 years ago