<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Removing \, (backslash comma) in incoming CSV file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Removing-backslash-comma-in-incoming-CSV-file/m-p/2429118#M140328</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can read the entire file as a string ,and replace "\," with "", then generate a new csv file or extract fields using tExtractDelimitedFields. eg:&lt;/P&gt;
&lt;P&gt;tFileInputRaw--main--tJavaRow--tFileOutputRaw&lt;/P&gt;
&lt;P&gt;on tJavaRow:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;output_row.content = input_row.content.toString().replaceAll("\\\\,","");&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Shicong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2024 02:34:02 GMT</pubDate>
    <dc:creator>Shicong_Hong</dc:creator>
    <dc:date>2024-03-11T02:34:02Z</dc:date>
    <item>
      <title>Removing \, (backslash comma) in incoming CSV file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Removing-backslash-comma-in-incoming-CSV-file/m-p/2428965#M140326</link>
      <description>&lt;P&gt;I am receiving a CSV file that has an escaped comma.&amp;nbsp; I need to remove the \, from the file because otherwise the comma causes an offset and adds extra columns.&amp;nbsp; I have tried using CSV options and various functions in tMap but haven't been able to accomplish this.&amp;nbsp; I am using Talend Studio v8.&lt;/P&gt;
&lt;P&gt;For example, I need to remove the \, after Drug so that it is just Drug Fentanyl or Drug-Fentanyl (if I replace space with dash).&amp;nbsp; The data is not encased in double quotes and looks exactly like below.&amp;nbsp; It comes in from the original source as 'Drug, Fentanyl' and a 3rd party is escaping the comma.&lt;/P&gt;
&lt;P&gt;Item1234,Drug\, Fentanyl .05mg/ml&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 23:41:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Removing-backslash-comma-in-incoming-CSV-file/m-p/2428965#M140326</guid>
      <dc:creator>SCook</dc:creator>
      <dc:date>2024-03-08T23:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Removing \, (backslash comma) in incoming CSV file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Removing-backslash-comma-in-incoming-CSV-file/m-p/2429118#M140328</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can read the entire file as a string ,and replace "\," with "", then generate a new csv file or extract fields using tExtractDelimitedFields. eg:&lt;/P&gt;
&lt;P&gt;tFileInputRaw--main--tJavaRow--tFileOutputRaw&lt;/P&gt;
&lt;P&gt;on tJavaRow:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;output_row.content = input_row.content.toString().replaceAll("\\\\,","");&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Shicong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 02:34:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Removing-backslash-comma-in-incoming-CSV-file/m-p/2429118#M140328</guid>
      <dc:creator>Shicong_Hong</dc:creator>
      <dc:date>2024-03-11T02:34:02Z</dc:date>
    </item>
  </channel>
</rss>

