hi all please assist, i want to remove that email foot not at the bottom, i dont want to include it as part of extracting email body;
Tried this regex, but it gives an error

hi all please assist, i want to remove that email foot not at the bottom, i dont want to include it as part of extracting email body;
Tried this regex, but it gives an error

Dear @Anelisa_Bolosha1 ,
Please use below regex. It will find all the text which starts with The and ends with email_disclaimer.pdf
System.Text.RegularExpressions.Regex.Replace(Email_Body,"The[\s\S]*?email_disclaimer\.pdf","")
Mark as solution if it solves your issue. ![]()
Br,
NikZ
First analys your email body and if you want remove the email foot means from The ** insurance Company … to disclaimer.pdf this part alone you want remove.
System.Text.RegularExpressions.Regex.Replace(Email_Body,“(?>This process)(.*)(\bpermissions)”,“”)
This will replace with empty between those two keys, if you want you can change those keys with your accurate keys
System.Text.RegularExpressions.Regex.Replace(Email_Body,“(?>starting of your email foot)(.*)(\bdisclaimer.pdf)”,“”)
you can replace value starting of your email foot with your actual value
The ? insurance in question mark place you can give the value that you hided
![]()
this text you can give in starting of your email foot
Thank you, this helped a lot…problem solved ![]()
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.