Regular Expressions 101

Community Patterns

1...34567...901

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(?:(?<=\.)|^)(?:0+)(?=\d)
/
g

Description

find leading zeros in ipv4 adresses

Submitted by anonymous - 9 years ago