my $path = $1 if $target =~ m!^([^?]*?/)?([^/\?]*)(\?(.*))?$!; [download]
In reply to Re: How to replace in one regexp by vitoco in thread How to replace in one regexp by appleii