Given a textual URL (protocol://host.dom/dir/file), the first thing you'll need to do is extract the "host.dom" part from the entire URL. A CPAN search on "url" turns up some hits on modules that may (or may not) help. Next you'd need to resolve the host names to IP addresses using DNS. A quick look through Networking Code in Code Catacombs finds (code) Resolve list of DNS names by yours truly that should do nicely.
But if you want to match URL entries containing IP addresses instead of 'host.dom', then check out Regexp::Common::net by our very own Abigail-II.In reply to Re: Getting IP from URL
by ybiC
in thread Getting IP from URL
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |