fork download
  1. import re
  2. text = """Recipient:
  3. nolo.lamb@golab.com \--- mail_boundary --- ATTENTION: This email came from an
  4. external source.
  5.  
  6. Sender: nlrt@vloh.net Subject: [External] *LEGALZOOM OPENS AT $30, IPO
  7. AT $28 Message-Id: <60DC94E60001AE8432F70080_0_2129298@mscv03>
  8. Recipient: Nichole.wen@golab.com \--- mail_boundary --- """
  9.  
  10. print( re.findall(r'\bRecipient:\s*(\S+@\S+)', text) )
Success #stdin #stdout 0.03s 9456KB
stdin
Standard input is empty
stdout
['nolo.lamb@golab.com', 'Nichole.wen@golab.com']