That will also select a hostname if the URL is something like "http://foo.bar.com/foo".$host = m#http://([^/]+)*#;
In reply to RE: Getting an IP out of a string
by knight
in thread Getting an IP out of a string
by the_slycer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |