NAME

Net::Domain::Regex - Match DNS domain names and extract into TLD, Domain and hostname parts.

SYNOPSIS

use Net::Domain::Regex;
use Data::Dumper;
my $c = Net::Domain::Regex->new;

while( <> ){
        chomp;
        if( my @rc = $c->match( $_ ) ){
                print Dumper( \@rc ),"\n";
        }

}

DESCRIPTION

This module is used for finding and extracting domain names from a series of text.

OBJECT ORIENTED INTERFACE

This module is written with an object oriented interface.

new

This method instantiates the object. It attempts to parse the TLD/SLD cache and load the domains into its object store.

refresh

Parse the local file, generating all TLDs and SLDs.

pull

Pull the remote file for processing. Requires LWP for this.