Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^(\d+\.\d*?[1-9])0+$
/
gm

Description

Match trailing zeros

Submitted by anonymous - 6 years ago