How to replace " to ' in a string

HiAll,

I want to replace all the double quotes (“) in a string to Single quote('). I am using .Replace(”“”, “'”) command in uipath. But it is not working. Please suggest the method to do this.

4 Likes

di you use system.Text.RegularExpressions.Regex.Replace?

Hi @Anamika15,

Please try YourString.Replace("""","'")

Warm regards,
Nimin

5 Likes

Hi

You can use StringVar.Replace(“”“”,“'”)

hope it will work

1 Like

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