my $file = 'http://txs.corp.com:8080/area/es/2215.csv.gz'; my ( $gzip ) = $file =~ m/\/(.*?\.gz)$/; [download]
In reply to Why is this greedy matching? by awohld