Subject: | Regexp::Common::net should have a strict option for IPv4 addresses |
Currently Regexp::Common::net's IPv4 regex will match dotted decimal IPs that are prefixed with zeros, e.g., '01.01.01.01'. Although this is arguably correct, such addresses are ambiguous and they often don't work when passed to other functions such as Socket::inet_pton. It would be nice if there was a strict option for the dotted decimal match that would not much such addresses.
Greg