$str_date =~ /^\w*\s*\w*\s*(?\w*)\s*(?\d*).*(?\d{4})$/; #### my $date = sprintf("%4d%02d%02d", $+{year}, $months{$+{month}}, $+{day});