Skip to content

Instantly share code, notes, and snippets.

@miwarin
Created October 15, 2017 05:58
Show Gist options
  • Save miwarin/f781529709f3b3c9de061572ee321eb5 to your computer and use it in GitHub Desktop.
Save miwarin/f781529709f3b3c9de061572ee321eb5 to your computer and use it in GitHub Desktop.
IPアドレス解析
irb(main):013:0> /(\d{1,3}\.){3}(\d{1,3})/ === "192.168.1."
=> false
irb(main):014:0> /(\d{1,3}\.){3}(\d{1,3})/ === "192.168.1.1"
=> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment