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/;
HTH!
Cheers Rolf
In reply to Re: dynamic regex
by LanX
in thread dynamic regex
by mhearse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |