Regular Expressions 101

Community Patterns

Community Library Entry

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 - 10 years ago