Regular Expressions 101

Community Patterns

IP network check (CIDR notation

1

Regular Expression
PCRE (PHP <7.3)

/
(([1-9]{0,1}[0-9]{0,2}|2[0-4][0-9]|25[0-5])\.){3}([1-9]{0,1}[0-9]{0,2}|2[0-4][0-9]|25[0-5])\/([1-2][0-9]|3[0-1])
/

Description

no description available

Submitted by anonymous - 8 years ago