my $file_pattern ="*.txt"; $file =~ /$file_pattern/; [download]
In reply to simple regex match question by Anonymous Monk