http://www.perlmonks.org?node_id=988800


in reply to Re: Finding specific keyword in Perl
in thread Finding specific keyword in Perl

Even better, use the Regexp::Common module. Far less chance of false matches.

use Regexp::Common; my $IP_MATCH = $RE{net}{IPv4}{dec}; my ($IP) =~ $IP_MATCH;
Bill