Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^\d+(\.\d{1,5})?$
/
gm

Description

select only number with or without decimal place and limit decimal places to 5 decimals

Submitted by YJ - 2 years ago