Skip to content

Instantly share code, notes, and snippets.

@mhou1981
Created January 2, 2019 07:05
Show Gist options
  • Save mhou1981/e8f4dc727e9a84b691157b79644b7f81 to your computer and use it in GitHub Desktop.
Save mhou1981/e8f4dc727e9a84b691157b79644b7f81 to your computer and use it in GitHub Desktop.
IPv4_matching_regex
^(2[0-4][0-9]|25[0-5]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.(2[0-4][0-9]|25[0-5]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.(2[0-4][0-9]|25[0-5]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.(2[0-4][0-9]|25[0-5]|1[0-9][0-9]|[1-9][0-9]|[0-9])$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment