Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Replace ' character in fileds

Hello,

Sorry for my poor english but i'm french.

I'd like to know how replace a quote character <'> in a field.

I tried to use the function <replace> using <"'"> in option :

replace(<field>, "'",'') but it doesn't work !

Can someone help me please !

1 Solution

Accepted Solutions
Not applicable
Author

Hi Romain,

Check the attached application.

In my application, i have replaced <,> in to space < >.

Check the attachment , you`ll get a idea.

Cheers Beer

- Sridhar

View solution in original post

14 Replies
Not applicable
Author

Hi Romain,

Check the attached application.

In my application, i have replaced <,> in to space < >.

Check the attachment , you`ll get a idea.

Cheers Beer

- Sridhar

Not applicable
Author

thank you Merci Merci beaucoup 🙂

it's works perfectly !

thank you very much !

Not applicable
Author

Ha...! all credits goes to MR. Rob Wunderlich , because i have read this one in his bolg. Wink

cheers Beer

- Sridhar

rbecher
MVP
MVP

Okay, MapSubstring( ) is one way, it's also easy (and more flexible) with the replace function:

replace(<field>, chr(39), ' ')

Ralf

Astrato.io Head of R&D
rbecher
MVP
MVP

..this app was with comma not w/ qoute.

Astrato.io Head of R&D
Not applicable
Author

Hi,

It will work but you need to take all info to excel as i did.

check the attachment Yes

- Sridhar

rbecher
MVP
MVP

..with double quotes use chr(34), just as simple as this:

Load *,
replace(Product, chr(34), ' ') as Product_Replace;
LOAD Product
FROM (biff, embedded labels, table is Sheet1$);

Ralf

Astrato.io Head of R&D
qlikviewforum
Creator II
Creator II

How can I use replace(or any other string function) to put double quotes in the start and end of the path? Because New Folder contains space in between.

"C:\Documents and Settings\MYUSER\Desktop\New Folder"

rbecher
MVP
MVP

Just add the double qoutes:

'"' & path & '"'  // single double single quote & ..

- Ralf

Astrato.io Head of R&D