Community Patterns

Community Library Entry

2

Regular Expression
Created·2015-05-09 17:06
Flavor·PCRE (Legacy)

/
\b(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9]))\b
/
g
Open regex in editor

Description

Searches for dotted decimal IPv4 Adresses and saves the numbers in match groups.

Submitted by anonymous