constant VALID_IP
Ruby on Rails 4.0.13
Since v4.0.13 Last seen in v4.1.16Available in: v4.0.13 v4.1.16
This constant contains a regular expression that validates every known form of IP v4 and v6 address, with or without abbreviations, adapted from this gist.