my $url="http://proxy.aol.com:8080/login"; my($host)=$url=~/http:\/\/([^\/]+)/;
word!
-Ev
Update: Sorry, I'm a moe - I forgot to add the point of this post in my example!
In reply to Re^3: Extracting a domain name from a url
by ministry
in thread Extracting a domain name from a url
by abachus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |