Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

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

Description

find leading zeros in ipv4 adresses

Submitted by anonymous - 10 years ago