Created
October 15, 2017 05:58
-
-
Save miwarin/f781529709f3b3c9de061572ee321eb5 to your computer and use it in GitHub Desktop.
IPアドレス解析
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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