Need Regex to extract shared folder path

Hi all,

I need a regex to extract the shared paths which I will receive over email.

Email Body could be like this:

image

I would really appreciate your help!

Regards,
Ahmad

Expectation output?

All the shared paths present in the mail body.

Hi @ahmad.sultan

How about this Regex expression?

System.Text.RegularExpressions.Regex.Match(YourString,"(?s)(?<=placed:)(.*?)(?=Regards)").Tostring

image

Regards
Gokul

Thanks for responding @Gokul001

Basically the email body is not fixed…there can be anything before and after the shared paths.

How about:

\\(\\[^\\\n\r]+)+

image

1 Like

Thanks @ptrobot !

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.