Regular Expressions 101

Community Patterns

IPv4 address match

1

Regular Expression
PCRE (PHP <7.3)

/
^((([0-9])|(1([0-9]{1,2}))|25[0-5]|(2[0-4][0-9])|(2([0-9]{0,1})))\.){3}\2$
/
gm

Description

as the title says

Submitted by anonymous - 4 years ago