in reply to files that include date range
$regex = ""; foreach $day ( 0 .. 6 ) { $regex .= $months[$mon] . $mday + $day . "|"; } chop( $regex ); ... return unless ( $string =~ /\Q$regex/oi ); ... [download]
-derby