Regular Expressions 101

Community Patterns

IPv4 Validator

10

Regular Expression
PCRE (PHP <7.3)

/
^(?:(?:25[0-5]|2[0-4]\d|1?\d{1,2})(?:\.(?!$)|$)){4}$
/
gm

Description

no description available

Submitted by anonymous - 4 years ago (Last modified 8 months ago)