added regex to parse file lines