Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(^\d{1,2}+\.\d{1,2}\.\d{1,2}\.\d{1,2}$)
/
gm

Description

Will only capture patterns matching 4 levels, found at the beginning of a line if /gm tag is used

Submitted by bsmith - 9 years ago