Community Patterns

Community Library Entry

2

Regular Expression
Created·2016-03-03 15:48
Flavor·PCRE (Legacy)

/
^([01]?\d{1,2}|2[0-4]\d|25[0-5])\.([01]?\d{1,2}|2[0-4]\d|25[0-5])\.([01]?\d{1,2}|2[0-4]\d|25[0-5])\.([01]?\d{1,2}|2[0-4]\d|25[0-5])$
/
gm
Open regex in editor

Description

Valid: 000.01.249.255 1.199.200.0 0.0.0.0

Invalid: 1000..256.300

Submitted by MaxusR