Use a regex of some sort...
# Untested for file name with space. $base_name =~ m{ \A $input some-fixed-string .*? [.]pdf \z }x; [download]
In reply to Re: searching files by Anonymous Monk in thread searching files by michael99