How to extract string in between double quotes

Hi All,

I have url in between double quotes i want to extract that url.Can any one help me.

Example:-href=“https://imss91-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3A%2F%2Fcenturylink.na1.adobesign.com%2Fpublic%2Fesign%3Ftsid%3DCBFCIBAA3AAABLblqZhBnH-aa7sqykOcK27PtbXdtJ21a5jorYZXFoFlwN1HMlRMfrsjgSzpmLlJuRxnhPUR_9TCx5mtSqVMq3GOUc4Aw%26&umid=99FFF6C9-D44F-8E05-8958-2AB9CDA85C9D&auth=19120be9529b25014b618505cb01789c5433dae7-e5e1810cfabbcbf81e7d2124136d2ae10570948f”>

Output expected

https://imss91-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3A%2F%2Fcenturylink.na1.adobesign.com%2Fpublic%2Fesign%3Ftsid%3DCBFCIBAA3AAABLblqZhBnH-aa7sqykOcK27PtbXdtJ21a5jorYZXFoFlwN1HMlRMfrsjgSzpmLlJuRxnhPUR_9TCx5mtSqVMq3GOUc4Aw%26&umid=99FFF6C9-D44F-8E05-8958-2AB9CDA85C9D&auth=19120be9529b25014b618505cb01789c5433dae7-e5e1810cfabbcbf81e7d2124136d2ae10570948f

Regards,
Hima

Hi @thima

Try this expression (?<=“).*(?=”)

Regards
Sudharsan

Updated one
(?<=href=“).*(?=”)

Regards
Sudharsan

1 Like

@thima

Create a string varaible as strVariable

Now using Assign activity write as below

strVariable = System.Text.RegularExpressions.Regex.Matches(strVariable, “(?<=“).+(?=”)”).Value

Hope this may help you

Thanks

Hi,

Getting below issue

Regards,
Hima

Try below query
System.Text.RegularExpressions.Regex.Matches(link, "(?<=").+(?=")")
Reference check below URL

Regards,
Arivu

Hi @thima

You can use replace method

Yourstring_Var.Replace("""""",)

Thanks
Robin

Hi @thima ,

If you have this href as one of the attribute the ui element you are trying to automate you could use get attribute activity and pass href as input so that you will get url as output. Thanks.

Hi Kiran,

This hyperlink i am getting in email. I am reading email body.

Regards,
Hima