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=“Message”>

Output expected

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

image

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