Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Eric_Talend
Creator
Creator

Replace "'" by """ ?

Hello,

I have an string variable and I would like to replace the character ' (simple quote) by the character " (double quote).

I would like to do this in tMap but it doesn't work :

StringHandling.EREPLACE(row3.Y2_00555,"'",""")

How can I do this ?

Thanks.

Regards;

Labels (2)
1 Solution

Accepted Solutions
Eric_Talend
Creator
Creator
Author

You understood.

 

I had found this solution and I was going to post it !

 

So, I confirm 😉

 

StringHandling.EREPLACE(row3.Y2_00555, "'", "\"")

 

it's OK 😉

 

Many thanks

View solution in original post

2 Replies
XJ_1630
Contributor III
Contributor III

i am not sure that i understand:

 

did you try - StringHandling.EREPLACE(row3.Y2_00555

,"'"

,"\""

)

  • the lack of back-slash in front of your double-quote might be a issue
Eric_Talend
Creator
Creator
Author

You understood.

 

I had found this solution and I was going to post it !

 

So, I confirm 😉

 

StringHandling.EREPLACE(row3.Y2_00555, "'", "\"")

 

it's OK 😉

 

Many thanks