Regular Expressions 101

Private IP v4 Address

Open Workspace
  • JavaScript
  • Match
0

Regular Expression

/
^(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