Community Patterns

Community Library Entry

-1

Regular Expression
Created·2020-01-21 04:20
Flavor·PCRE (Legacy)

/
^(255)\.(0|128|192|224|240|248|252|254|255)\.(0|128|192|224|240|248|252|254|255)\.(0|128|192|224|240|248|252|254|255)
/
gm
Open regex in editor

Description

Intended to verify a valid IPv4 subnet mask against every valid IPv4 subnet mask possible using octet format. Does not check against a string that is using CIDR notation.

Submitted by anonymous