I have raw text from a chain of emails.
For all inquiries please reach out
From: abc@abc.com At: 01/27/21 23:29:28To: CompanyA
Cc: 123@123.com, 345@345-YYY.com Subject: this is the subject line
From: CompanyB(company) <mmm@mmm.net>
Sent: Wednesday, January 27, 2021 12:51 PM
From: 999@999.com At: 01/27/21 23:29:28To: CompanyA
Cc: 888@888.com, 777@777.com Subject: tect
Through Regex I need to capture the email addresses between the first word From to the first Subject. In the above the match should be:
abc@abc.com
123@123.com
345@345-YYY.com
I do have ( ){0,1}([w.]@[w+-.]) to get email addresses. I will match through Python Regex Lib.
question from:https://stackoverflow.com/questions/66067870/regex-find-email-address-between-first-two-instances-of-strings