logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Regexp::IPv6 - Regular expression for IPv6 addresses

Description

       This module exports the $IPv6_re regular expression that matches any valid IPv6 address as described in
       "RFC 2373 - 2.2 Text Representation of Addresses" but "::". Any string not compliant with such RFC will
       be rejected.

       To match full strings use "/^$IPv6_re$/".

Name

       Regexp::IPv6 - Regular expression for IPv6 addresses

Synopsis

         use Regexp::IPv6 qw($IPv6_re);

         $address =~ /^$IPv6_re$/ and print "IPv6 address\n";

See Also