add regex to parse_files method