Regular Expressions 101

Community Patterns

zero trailing

0

Regular Expression
PCRE (PHP <7.3)

/
(\b0\d*?)0+$
/
gm

Description

it match when zero is second characters of the string and so on

Submitted by Azhi - 2 years ago