Skip to content

Instantly share code, notes, and snippets.

@JohnPreston
Created August 17, 2014 00:20
Show Gist options
  • Save JohnPreston/66468a0d7104b57011d2 to your computer and use it in GitHub Desktop.
Save JohnPreston/66468a0d7104b57011d2 to your computer and use it in GitHub Desktop.
CIDR regexps
prefix => (?:\d{1,2}|)$
IP _> \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment