
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- « Previous Replies
-
- 1
- 2
- Next Replies »
Accepted Solutions


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
purgechar(string, chr(39))

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
try this
replace(fieldname,''','')
i modified this by
=replace(fieldname, chr(39) ,'')
this working fine

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
PurgeChar(YourField, '.-`@#$%^&')
and if ther is single quotes try like:
PurgeChar(YourField, '.-`@#$%^&' &chr(39))

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use keepchar('Fieldname','A-Z') May be it vl work


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
purgechar(string, chr(39))

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi
=PurgeChar(fieldname,chr(39))

.png)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Varun,
Use KeepChar() like below
LOAD
*,
KeepChar(FieldName, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ') AS FormattedColumn
FROM DataSource;
Hope this helps you.
Regards,
jagan.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Try Replace() to get string only from the field.
Regards
Charitha

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you all. I got it.

.png)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- « Previous Replies
-
- 1
- 2
- Next Replies »