Hi all,
I need a regex to extract the shared paths which I will receive over email.
Email Body could be like this:
I would really appreciate your help!
Regards,
Ahmad
Hi all,
I need a regex to extract the shared paths which I will receive over email.
Email Body could be like this:
I would really appreciate your help!
Regards,
Ahmad
Expectation output?
All the shared paths present in the mail body.
How about this Regex expression?
System.Text.RegularExpressions.Regex.Match(YourString,"(?s)(?<=placed:)(.*?)(?=Regards)").Tostring
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]+)+
Thanks @ptrobot !
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.