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


in reply to How do you extract the server from a URL?

use Regexp::Common; my $url = 'http://www.perlmonks.org/index.pl'; print $3 if $url =~ /$RE{URI}{HTTP}{-keep}/;

Abigail