Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
varunvarma
Contributor III
Contributor III

How to remove special char ' in my string ?

Hello All,

How to remove special char ' in my string.

EG :- I have data like this

INDI'A

CHI'NA

SINGAP'ORE

Here i want to remove symbol ' and my output should be like this

INDIA

CHINA
SINGAPORE

I am using REPLACE function and it is working for symbols like .,-  but not working for '   Please let me know how to do this.

Thanks in advance.

1 Solution

Accepted Solutions
MarcoWedel

purgechar(string, chr(39))

View solution in original post

10 Replies
Not applicable

try this

replace(fieldname,''','')


i modified this by

=replace(fieldname, chr(39) ,'')


this working fine

tresesco
MVP
MVP

PurgeChar(YourField, '.-`@#$%^&')

and if ther is single quotes try like:

PurgeChar(YourField, '.-`@#$%^&' &chr(39))

Not applicable

You can use keepchar('Fieldname','A-Z') May be it vl work

MarcoWedel

purgechar(string, chr(39))

Not applicable

hi

=PurgeChar(fieldname,chr(39))

jagan
Luminary Alumni
Luminary Alumni

Hi Varun,

Use KeepChar() like below

LOAD

*,

KeepChar(FieldName, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ') AS FormattedColumn

FROM DataSource;

Hope this helps you.

Regards,

jagan.

Not applicable

Hi

Try Replace() to get string only from the field.

Regards

Charitha

varunvarma
Contributor III
Contributor III
Author

Thank you all. I got it.

jagan
Luminary Alumni
Luminary Alumni

Hi Varun,

Please close this thread by giving/clicking Correct and Helpful answers to the useful posts, it helps others in finding the answers.

Regards,

Jagan.