in reply to Stumped Regular expressions

If the URLs have the structure you described above, they will not match \.rar. If you have slashes in the regex, chose a different delimiter to avoid the backslashes: m{(http://hosting/image\d+\.jpg)}

If you are looking for URLs in general, consider Regexp::Common::URI.