Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^(10|127|192\.168|172\.(1[6-9]|2[0-9]|3[0-1]))\.
/
gm

Description

Validate IP addresses matching those specified in https://tools.ietf.org/html/rfc1918

Submitted by anonymous - 5 years ago