How to use substring

Hello Guys!

I need to extract a string after a word but is not working …not sure why …

I am in debug mode trying but is not working …any hint please?

Hey @RPA_RPA2
It looks like the json format.
Why you don’t deserialize the json as JObject and then you can use:
token = jsonObject("access").ToString

If you prefer string manipulation, you can use regex:
If(System.Text.RegularExpressions.Regex.IsMatch(str, """access\\\"":\\\""([^""]+)"""), System.Text.RegularExpressions.Regex.Match(str, """access\\\"":\\\""([^""]+)""").Groups(1).Value, String.Empty)

I will tried that … thank you very much

hey bro! Thank you very much! I tried the first option and It works. Thanks again.

1 Like

You’re welcome. I’m glad I helped :slight_smile:

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