Regular Expressions 101

Community Patterns

Currency Amount

2

Regular Expression
PCRE (PHP <7.3)

/
^\d+\.\d{2}$
/

Description

Format: x0.00

Valid: 13.37 4.20 1.00

Invalid: 13,37 4,20 1,00 1 7.5

Submitted by anonymous - 9 years ago