constant VALID_IP

Ruby on Rails 4.1.16

Since v4.0.13 Last seen in v4.1.16

Available 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.

Type at least 2 characters to search.

↑↓ navigate · open · esc close