In number_from_file_name() use match.group to get part of the match.