in reply to Regexp match filename, exclude path
qr{ [^\\/]+ # one or more non-slash characters $ # the end of the string }x [download]