in reply to dynamic regex
but yes, you can put a datetime-string into a variable, dynamically manipulate this variable and use it as a pattern within any regex.
my $dt = 'Oct 10 05:59:59'; $dt =~ s/9:59$/[0-2]:/; $file =~ m/$dt/; [download]
HTH!
Cheers Rolf