Regular Expressions 101

Community Patterns

IPV4 Grabber

0

Regular Expression
PCRE2 (PHP >=7.3)

/
\b(?<!\.)(?:(?:25[0-5]|2[0-4][\d]|1?[\d][\d]?)\.){3}(?:25[0-5]|2[0-4][\d]|1?[\d][\d]?[\d]?(?!\.))\b
/
gm

Description

Loading markdown...
Submitted by Ricardo Chica - 2 years ago
(Last modified 2 years ago)