I have an automation that opens emails I receive daily, the emails will have a table that is structured the same for every email. I have to get certain items from the table in the email. I’m able to get all the information in a string, I just need to get a regular express to get the information in bold in the below table. Can I get some guidance and some regular expressions that would extract the data written in bold below? I also posted a picture of what the table from the email looks like.
Opportunity: CLMS – Natron Publications
Account: Brady 101
Contract Months : 42
Subscription Term : Man
Closed Date : 7/7/2023
Total Contract Value : $45
Owner : Kirk Cousins
Billing Term :
Billing Contact Name 1 : Aron Rogers
Billing Contact Email 1 : nothing@yahoo.com
Billing Contact Name 2 : Patrick Mahomes
Billing Contact Email 2 :
Email for Invoices : hello at yahoo.com
Billing Mailing Address : 900 Half way house
Client PO Number :
Give the string input in the above expression and give the regex expression
Store the regex expressions in a list of string and use for each loop to iterate the list and store the each regex expression in a variable and pass to the above expression.
If the content extracted from the Body field is of text type, then a possible answer is the one below:
GetInformation.xaml goes through the text line by line. It analyzes only the lines that contain the “:” character and those that are stated in Switch (that is, the necessary ones). The part to the right of the “:” character is extracted from each required line and will be saved in txtOutput. Then the data here can be used as desired.
We have the scheme:
txtBody= (the text in the Body field)
…….
Call Procedure GetInformation
IN: txtBody (type String)
OUT: txtOutput (type String)
……
txtOutput → (we will use the data here as we wish)