Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^(0|[1-9]{1,3})([.,][1-9]{1,3})?$
/
gm

Description

4 enteros / coma o punto / 3 decimales

Submitted by nico-ber - 3 years ago