<?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 Filter output rows in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Filter-output-rows/m-p/2261727#M42416</link>
    <description>&lt;P&gt;Hello Talend Community,&lt;/P&gt;
&lt;P&gt;I'd like to have your help on an issue that I face. the following job have a path with an input (/Default/Tools/Articles/Documents/Documents_Extract/)&amp;nbsp; and as an ouput these result:&lt;BR /&gt;/Default/&lt;BR /&gt;/Default/Tools/&lt;BR /&gt;/Default/Tools/Articles/&lt;BR /&gt;/Default/Tools/Articles/Documents/&lt;BR /&gt;/Default/Tools/Articles/Documents/Documents_Extract/&lt;/P&gt;
&lt;P&gt;Now I'd like to filter those output rows in order to have unified values such as:&lt;/P&gt;
&lt;P&gt;/Default/&lt;/P&gt;
&lt;P&gt;/Tools/&lt;BR /&gt;/Articles/&lt;BR /&gt;/Documents/&lt;BR /&gt;/Documents_Extract/&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TalendJob.PNG" style="width: 457px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2TZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145738iB26E0E08308785C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2TZ.png" alt="0683p000009M2TZ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Could you help me whit the appropriate components to use?&amp;nbsp; I'don't know which component should I use.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thank you in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
    <pubDate>Wed, 13 Feb 2019 12:17:59 GMT</pubDate>
    <dc:creator>stvn</dc:creator>
    <dc:date>2019-02-13T12:17:59Z</dc:date>
    <item>
      <title>Filter output rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filter-output-rows/m-p/2261727#M42416</link>
      <description>&lt;P&gt;Hello Talend Community,&lt;/P&gt;
&lt;P&gt;I'd like to have your help on an issue that I face. the following job have a path with an input (/Default/Tools/Articles/Documents/Documents_Extract/)&amp;nbsp; and as an ouput these result:&lt;BR /&gt;/Default/&lt;BR /&gt;/Default/Tools/&lt;BR /&gt;/Default/Tools/Articles/&lt;BR /&gt;/Default/Tools/Articles/Documents/&lt;BR /&gt;/Default/Tools/Articles/Documents/Documents_Extract/&lt;/P&gt;
&lt;P&gt;Now I'd like to filter those output rows in order to have unified values such as:&lt;/P&gt;
&lt;P&gt;/Default/&lt;/P&gt;
&lt;P&gt;/Tools/&lt;BR /&gt;/Articles/&lt;BR /&gt;/Documents/&lt;BR /&gt;/Documents_Extract/&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TalendJob.PNG" style="width: 457px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2TZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145738iB26E0E08308785C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2TZ.png" alt="0683p000009M2TZ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Could you help me whit the appropriate components to use?&amp;nbsp; I'don't know which component should I use.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thank you in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 12:17:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filter-output-rows/m-p/2261727#M42416</guid>
      <dc:creator>stvn</dc:creator>
      <dc:date>2019-02-13T12:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Filter output rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filter-output-rows/m-p/2261728#M42417</link>
      <description>you can try to use this on a tMap&lt;BR /&gt;row1.filepath --&amp;gt; row1.filepath.replaceAll("(/[^/]+/)$", "$1")</description>
      <pubDate>Wed, 13 Feb 2019 12:30:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filter-output-rows/m-p/2261728#M42417</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-02-13T12:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Filter output rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filter-output-rows/m-p/2261729#M42418</link>
      <description>&lt;P&gt;Hi François,&lt;/P&gt;&lt;P&gt;thank you for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My first question is: What does "$1" represent?&lt;/P&gt;&lt;P&gt;if there is a second row start by :&amp;nbsp;&lt;SPAN&gt;/Default/Tools/Articles/Files/FilesAfterExtract/&amp;nbsp; Is the tMap is goind to give me as an output these result?:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/Default/Tools/Articles/Documents/Documents_Extract/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/Default/Tools/Articles/Files/FilesAfterExtract/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/Default/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/Tools/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Articles/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/Documents/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/Documents_Extract/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/Files/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/FileAfterExtract/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to keep variable that has not been created yet.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thank you for your time and your help&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 07:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filter-output-rows/m-p/2261729#M42418</guid>
      <dc:creator>stvn</dc:creator>
      <dc:date>2019-02-14T07:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Filter output rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filter-output-rows/m-p/2261730#M42419</link>
      <description>you can get help on regula expression with java on multiple site. 
&lt;BR /&gt;but on our case $1 represent the value inside parenteses(/[^/]+/) 
&lt;BR /&gt;/ is / 
&lt;BR /&gt;[^\]+ is something without \ one or more time. 
&lt;BR /&gt;$ is the end of the line 
&lt;BR /&gt; 
&lt;BR /&gt;row1.filepath.replaceAll("(/[^/]+/)$", "$1") 
&lt;BR /&gt;just give you the last element between / and / 
&lt;BR /&gt; 
&lt;BR /&gt;Regards, 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Feb 2019 10:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filter-output-rows/m-p/2261730#M42419</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-02-15T10:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Filter output rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filter-output-rows/m-p/2261731#M42420</link>
      <description>&lt;P&gt;Hi François,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank for your help, I tried your recommended regex and unfortunately it did not removes any duplicate Values.&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Regex.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M36Q.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146557iAFC1788501FEDBF4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M36Q.png" alt="0683p000009M36Q.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;P&gt;You will find below the result:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RegOuput.PNG" style="width: 656px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M35I.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139911iB2ABD7A829E5BCC0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M35I.png" alt="0683p000009M35I.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;My idea was to have at the end&lt;/P&gt; 
&lt;P&gt;/Default/&lt;BR /&gt;/Tools/&lt;BR /&gt;/Articles/&lt;BR /&gt;/Documents/&lt;BR /&gt;/DocFirst/&lt;/P&gt; 
&lt;P&gt;If there is a second line started by&amp;nbsp;/Default/Tools/Articles/DocumentsFirst/DocumentsSecond then the output would be:&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;/DocumentsFirst/&lt;/P&gt; 
&lt;P&gt;/DocumentsSecond/&lt;/P&gt; 
&lt;P&gt;could you advise me any other suggestion? Thank for your help.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Steeve&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 14:31:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filter-output-rows/m-p/2261731#M42420</guid>
      <dc:creator>stvn</dc:creator>
      <dc:date>2019-02-18T14:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Filter output rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filter-output-rows/m-p/2261732#M42421</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPEbAAO"&gt;@stvn&lt;/A&gt;, Please check the below solution for your case.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 917px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3CS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145174iF0FA102FF5580A59/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3CS.png" alt="0683p000009M3CS.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 915px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3BG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140772i14B63019D655CD11/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3BG.png" alt="0683p000009M3BG.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3Cc.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130968i07BE617C4146ED03/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3Cc.png" alt="0683p000009M3Cc.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 05:18:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filter-output-rows/m-p/2261732#M42421</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2019-02-19T05:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Filter output rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filter-output-rows/m-p/2261733#M42422</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKmJAAW"&gt;@manodwhb&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Hi I'd like to thank you for the provided solution. It works pretty well but the think is, I did not express very well my needs. I apologize for that. I have a csv file as input:&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;/Default/Tools/Documents/Articles/Factures/&lt;BR /&gt;/Default/Tools/Documents/Articles/Factures/Factures_Comptable/&lt;BR /&gt;/Default/Tools/Documents/Articles/Factures/Factures_Comptable/Année&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;And I'd like as an ouput:&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;/Default/&lt;BR /&gt;/Default/Tools/&lt;BR /&gt;/Default/Tools/Documents/&lt;BR /&gt;/Default/Tools/Documents/Articles/Factures/&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;/Factures_Comptable/&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;/Année&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;After the first line, I don't have any other duplicates variable. I implement the job below in order to filter my rows and keep only the data as shown in the example above. Could you recommend me any other solutions?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="missingFolder.PNG" style="width: 976px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2uf.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136135i5901DBE6144F58D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2uf.png" alt="0683p000009M2uf.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you for your time and consideration.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Stevn&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 21:10:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filter-output-rows/m-p/2261733#M42422</guid>
      <dc:creator>stvn</dc:creator>
      <dc:date>2019-02-19T21:10:18Z</dc:date>
    </item>
  </channel>
</rss>

