@supermanPunch I tried using the above expression as well as this expression :
System.Text.RegularExpressions.Regex.Match(Mail.Body.ToString,“(?<=Person Name:\n)\w+\s(\w+)?”).ToString.Trim
still I am getting a null value for both.
@waseem Ok. I think i was able to get the Output. But It is Strange that only if i add a return carriage I am able to Extract the Values. I have added a \r to the Expression. Please Check if it works on your side, Also if the real purpose is to extract the Data from the mails directly, I suggest you to check the same and revert back if it doesn’t work. Markat_Mails.zip (24.8 KB)
@supermanPunch Thanks for the solution but It works fine only if I use Outlook but when I use Gmail its giving null value .
Actually in Gmail it is fetching the entire body as null.