Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Karuetl
Creator II
Creator II

Remove $ and comma in String

I receive in the comma separated file as below

 

111,Jake,"$1,320.00 "
22,John,$128.00

 

 

I gave below to remove $, it didn't help me as it gave output as "1 

row5.column.replaceAll("\\$", "")

 

Labels (2)
1 Solution

Accepted Solutions
michad
Contributor II
Contributor II

Hello,

 

You can use the component tReplace like this :

  • Uncheck simple mode and active advanced mode
  • In the column Pattern, copy the following regex : "\\$|,"
  • Put empty string in column Replace

 

0683p000009M3Sb.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hopefully it will help you.

View solution in original post

4 Replies
michad
Contributor II
Contributor II

Hello,

 

You can use the component tReplace like this :

  • Uncheck simple mode and active advanced mode
  • In the column Pattern, copy the following regex : "\\$|,"
  • Put empty string in column Replace

 

0683p000009M3Sb.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hopefully it will help you.

Karuetl
Creator II
Creator II
Author

file is a comma separated 

Karuetl
Creator II
Creator II
Author

Hi

I receive in the comma separated file as below
111,Jake,"$1,320.00 "
22,John,$128.00
michad
Contributor II
Contributor II

To do this, you must use component tFileInputDelimited to cut your line according to a field separator.

You can find documentation of this component here : https://help.talend.com/reader/8BHX9tH5qcw~5xM6p58OTg/wZphtUXJPNp32p65z7XSgQ