Hi Everyone,
I want to extract the top name from the email body from the below email template.
From : Alex
To : Tom
Content: Contract
I need to renew contract
From : Jim
To : Shiva
Contect: Contract Renewal Cancellation
I don’t need to renew the contract
The above is the example of email body, I want to extract the top name only from every email. Kindly suggest the regex expression to extract the top name only.
Instead of using regex you can use substring method as well,
below is the syntax to extract the first value after 'From : ’ and attaching screenshot as well for your reference
if you want in regex format you can use below syntax in assign activity,
System.Text.RegularExpressions.Regex.Match(strInput,“(?<=From\s*:\s*)(.*)[^\r\n]”).ToString