Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(-)?([0-9]{1,3})(,)?([0-9]{1,3})?(,)?([0-9]{1,3})?(\.)([0-9]{2})
/
gm

Description

-11,252.40 -306.00 11,252.40 -10,946.40 306.00 -54,974.32 -55,356.82 -2,695.67 50.00 1.00 540,000.00 1,540,000.00 -11,540,000.00 -111,540,000.45

Submitted by anonymous - 4 years ago