How to Find URL of the particular hyperlink in mail

Hello Everyone,

I need to Get Url of Hyperlink of particular word i.e “ClickHere” in a mail.
Can anyone help me with Regex Expression to do so.
image

This is the mail what I recieve.

Hi @Ripusudan_Sharma

Can you check this post might help you.

Thanks
Latika

@Ripusudan_Sharma,

You can use Get Outlook activities for that,

Place a For each activitiy and check as below for the body

Item.Body.ToString

In the Body you can see ClickHere

You have to use regex matches activity to extract the URL

Hope this may helps you

Thanks

1 Like

so can you provide that regex express

Can you share the output?

Thanks

1 Like

Once you share the output we can assist further :slight_smile:

But it will probably look something like this:

System.Text.RegularExpressions.Regex.Match(Body,“(?<=\<).*(?=\>)”).Value

1 Like