in reply to Regex: Extract base URL for a specific domain

This should work:

my @urls = m|(https?://[^/]+[.]foo[.]com)|g;

Replies are listed 'Best First'.
Re^2: Regex: Extract base URL for a specific domain
by alpha-lemming (Novice) on Aug 29, 2013 at 14:51 UTC

    That works great, thanks!