<?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 CR/LF and removing extra ones in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/CR-LF-and-removing-extra-ones/m-p/2284027#M57806</link>
    <description>Any know the best way of removing cr/lf or just lf from a string ?
&lt;BR /&gt;My file looks like this;
&lt;BR /&gt;"AAAAAA","bbbbbb","CCCCCCC\r\n
&lt;BR /&gt;CCCCCC","dddddd"
&lt;BR /&gt;
&lt;BR /&gt;I'd like to get to; 
&lt;BR /&gt;"AAAAAA","bbbbbb","CCCCCCCCCCCCC","dddddd"
&lt;BR /&gt;Thanks</description>
    <pubDate>Wed, 29 Aug 2012 13:33:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-08-29T13:33:38Z</dc:date>
    <item>
      <title>CR/LF and removing extra ones</title>
      <link>https://community.qlik.com/t5/Talend-Studio/CR-LF-and-removing-extra-ones/m-p/2284027#M57806</link>
      <description>Any know the best way of removing cr/lf or just lf from a string ?
&lt;BR /&gt;My file looks like this;
&lt;BR /&gt;"AAAAAA","bbbbbb","CCCCCCC\r\n
&lt;BR /&gt;CCCCCC","dddddd"
&lt;BR /&gt;
&lt;BR /&gt;I'd like to get to; 
&lt;BR /&gt;"AAAAAA","bbbbbb","CCCCCCCCCCCCC","dddddd"
&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 29 Aug 2012 13:33:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/CR-LF-and-removing-extra-ones/m-p/2284027#M57806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-29T13:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: CR/LF and removing extra ones</title>
      <link>https://community.qlik.com/t5/Talend-Studio/CR-LF-and-removing-extra-ones/m-p/2284028#M57807</link>
      <description>I think you need to read the file using tFileInputDelimited with CSV options and then use tJavaRow to remove the linefeeds. 
&lt;BR /&gt;If the linefeed is always in the same field, just use e.g. output_row.field3 = input_row.field3.replace("\\r\\n\r\n",""); 
&lt;BR /&gt;If you don't know which field has the linefeed or it can change from row to row, you'll have to use reflection to loop through all the fields doing the replace. I've never used reflection myself, having only very basic Java knowledge but this topic ( 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCn49CAC" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/resolved-Automatically-trim-non-String-fields/td-p/86607&lt;/A&gt;) should help you hopefully.</description>
      <pubDate>Thu, 30 Aug 2012 01:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/CR-LF-and-removing-extra-ones/m-p/2284028#M57807</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2012-08-30T01:56:44Z</dc:date>
    </item>
  </channel>
</rss>

