use strict; use warnings; print m/^.*?(\w+\.\w+)$/ while(<DATA>); __DATA__ shopping.yahoo.com yahoo.com some.very.long.url.at.yahoo.com
$ perl -l 632539.pl yahoo.com yahoo.com yahoo.com
In reply to Re: Extract Host, Logical Host from URL
by andreas1234567
in thread Extract Host, Logical Host from URL
by downer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |