This should work:
my @urls = m|(https?://[^/]+[.]foo[.]com)|g;
In reply to Re: Regex: Extract base URL for a specific domain
by hdb
in thread Regex: Extract base URL for a specific domain
by alpha-lemming
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |