How can I use Perl regexps to extract all URLs of a specific domain (with possibly variable subdomains) with a specific extension from plain text? I have tried:
URLs aren't allowed to contain spaces, so instead of .*? you should use \S*?, for zero-or-more non-space characters.