Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
PCRE (PHP <7.3)

/
^((?:[0-9]{1,3}\.)){3}[0-9]{1,3}
/

Description

Regex to match an IPv4 address at beginning

Submitted by edoz90 - 8 years ago