check newest file and match file with regex