NAME

Net::IP::Identifier::Regex - Some regular expressions used by Net::IP::Identifier

VERSION

version 0.106

SYNOPSIS

use Net::IP::Identifier::Regex;

my $re = Net::IP::Identifier::Regex->new;

DESCRIPTION

Net::IP::Identifier::Regex represents tries to 'require Regexp::Common ('net')' and extract regular expressions for matching IPv4 and IPv6 addresses. If that fails, the regular expressions are created by hand, 'borrowed' from recent a version of Regexp::Common::net.

Methods

my $re = Net::IP::Identifier::Regex->new;

Creates a new Net::IP::Identifier::Regex object. No arguments are recognized.

$re->IPv4( [ $new ] )

Set/get the regular expression for matching IPv4 addresses.

$re->IPv6( [ $new ] )

Set/get the regular expression for matching IPv6 addresses.

SEE ALSO

Net::IP::Identifier

AUTHOR

Reid Augustin <reid@hellosix.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Reid Augustin.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.