in reply to Regex for extracting a domain name from a string.
Short answer, this problem is too difficult for "a regex" to handle. You need a module.
Nobody says perl looks like line-noise any more
kids today don't know what line-noise IS ...
In Section
Seekers of Perl Wisdom