def hex_color(self):
    matches = re.search(Line.HEX_REGEXP, self.text)
    if matches:
      return matches.group(0)
Convert the filename, content, mimetype triple into a MIME attachment
dataset/ETHPy150Open ggordan/GutterColor/line.py/Line.hex_color--crossover with--dataset/ETHPy150Open baskoopmans/djcommon/djcommon/email.py/EmailMultiRelated._create_related_attachment