in reply to Regex for extracting a domain name from a string.
Is there a CPAN module that will give you the result that you want, without you having to create a regular-expression at all?
Focus on the result that you want to obtain...