Extract a Pattern from E-mail Body Text

Status: Closed · Asked by calebhanson on · 0 views

calebhanson — Question ·

I'm having trouble understanding the basics of creating a pattern via Regex expressions. I want to auto-forward e-mails from another system to e-mail parser and then use the text formatter to recognize the general pattern of those e-mails and extract just the phone number and message portions. Here's an example:

-----Original Message-----
From: [email hidden] <6267337708@mail.mightytext.net>
Sent: Tuesday, December 27, 2022 6:07 PM
To: calebsellshomes
Subject: [MightyText] Text Message - Paul Vachon

Me: I see it now

I can easily get the phone number, but I'm having trouble isolating the message part that comes after the subject. How can I describe the the pattern to have the extractor extract only the part of the e-mail body that comes after the sixth line break?

calebhanson — Reply ·

I figured out how to make this work by splitting the e-mail subject and then using the result to isolate the message the follows the subject in the the body text.

Back to all forum threads · Log in to reply