Regular Expressions 101

Community Patterns

LiteralMatch int/float

1

Regular Expression
PCRE (PHP <7.3)

/
^(0|[1-9]{1}\d{0,7})(\.{1}\d{1,4}?)?$
/

Description

For matching numeric literals in equations

Submitted by Anttij - 8 years ago