Skip to content

Instantly share code, notes, and snippets.

@ericbaranowski
Created April 27, 2017 11:25
Show Gist options
  • Select an option

  • Save ericbaranowski/3cf108a00760885a8b6a1b25bd7595ff to your computer and use it in GitHub Desktop.

Select an option

Save ericbaranowski/3cf108a00760885a8b6a1b25bd7595ff to your computer and use it in GitHub Desktop.
# Regex Any IP Range
^([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))-([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment