

def extract_field(regex, raw_text):
    m = re.search(regex, raw_text)
    if m:
        return m.groups()[0].strip()
    return ''

dataset/ETHPy150Open benhamner/hillary-clinton-emails/scripts/emailsNoId.py extract_field/original