#$path =~ s{\?.*$}{}; #$path =~ s{[^/]+$}{}; $path =~ s{[^/\?]*(\?.*)?$}{}; [download]
In reply to Re: How to replace in one regexp by vitoco in thread How to replace in one regexp by appleii