Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Replace Special Characters in a String

JagdeeshN
12 - Quasar
12 - Quasar

Hi,

 

I have a string  (enter "0” for No; enter “1” for Yes with a Transition; enter “2” ).

 

In this string how do I replace all the " with \" to get the following output:-

 

(enter \"0\” for No; enter \“1\” for Yes with a Transition; enter \“2\” ).

 

 

Thanks,

Jagdeesh

3 REPLIES 3
jrgo
14 - Magnetar
REPLACE([Field], '"', '\"')
AngelosPachis
16 - Nebula

Hi @JagdeeshN ,

 

You can use a single quotation marks in the replace formula to achieve that

 

AngelosPachis_0-1614010246805.png

 

so

 

Replace([Field1],'"','\"')

 

Cheers,

 

Angelos

AbhilashR
15 - Aurora
15 - Aurora

Hi @JagdeeshN, as suggested by others, the Replace() function should help you replace " with \". The only point to keep in mind is that your original string has non-standard Alteryx quotes which Alteryx treats as a special string, in which case you will have to write some form of nested Replace function to replace  with \" . 

Labels