<?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: Need help on regex in tSplit rows in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Need-help-on-regex-in-tSplit-rows/m-p/2261201#M42052</link>
    <description>If you please don't mind, can you send me the zip file of the job which you are talking about as I find it difficult to imagine how exactly you propose the solution.
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;</description>
    <pubDate>Wed, 07 Jun 2017 21:21:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-07T21:21:09Z</dc:date>
    <item>
      <title>Need help on regex in tSplit rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-help-on-regex-in-tSplit-rows/m-p/2261197#M42048</link>
      <description>&lt;P&gt;I have a column that has a value as["a1","a2.e3","b3","c4","xyz\/ss"] (including [].). My requirement is to split rows each one having one value (a1, a2.e3, b3, c4, xyz/ss) based on the below with the logic&lt;BR /&gt;1st row having 1st value (i.e. a1), 2nd row having 2nd value (i.e a2.e3) and so on. Can any one suggest what is the regex to be used for the same in the split row column that is to be populated?&lt;BR /&gt;&lt;BR /&gt;Note: The programming should calculate no. of values based on number of commas, if there are 3 commas then there are 4 values and each value should be extracted based on the commas.&lt;BR /&gt;There can be a max of 10 values in each column and min of 1 value, the split row should be like; if you have only 4 values the output should contain only 4 rows.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Input :&lt;BR /&gt;col A&lt;BR /&gt;["a1","a2.e3","b3","c4, "xyz\/ss"]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;output&lt;BR /&gt;Col A&lt;BR /&gt;a1&lt;BR /&gt;a2.e3&lt;BR /&gt;b3&lt;BR /&gt;c4&lt;BR /&gt;xyz/ss&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 18:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-help-on-regex-in-tSplit-rows/m-p/2261197#M42048</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-07T18:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on regex in tSplit rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-help-on-regex-in-tSplit-rows/m-p/2261198#M42049</link>
      <description>&lt;P&gt;tNormalize will do this. &amp;nbsp;You will probably want to clean up the string a bit with a tMap or tReplace if you want to drop the brackets and quotes from the values. &amp;nbsp;I did this in a tMap as:&lt;/P&gt;
&lt;PRE&gt;row1.newColumn.replaceAll("\\[","").replaceAll("]","").replaceAll("\"","")&lt;/PRE&gt;
&lt;P&gt;Feed that into tNormalize, tell it the column you want to split and the separator character, and you should be good for any number of items in the list.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 20:22:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-help-on-regex-in-tSplit-rows/m-p/2261198#M42049</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-06-07T20:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on regex in tSplit rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-help-on-regex-in-tSplit-rows/m-p/2261199#M42050</link>
      <description>&lt;P&gt;After removing the brackets, I am getting the column value as&lt;BR /&gt;Col A&lt;BR /&gt;a1,"a2.e3","b3","c4","xyz\/ss"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;May I know what should be put on ColA's "newline" in each row to have the col values as&lt;BR /&gt;&lt;BR /&gt;Col A&lt;BR /&gt;Row 1 : a1&lt;BR /&gt;Row 2 : a2.e3&lt;BR /&gt;Row 3 : c4&lt;BR /&gt;Row 4:xyz/ss&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tsplitrow.jpg" style="width: 721px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ltdv.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137154i90FED6EF310CD6C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ltdv.jpg" alt="0683p000009Ltdv.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 21:08:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-help-on-regex-in-tSplit-rows/m-p/2261199#M42050</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-07T21:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on regex in tSplit rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-help-on-regex-in-tSplit-rows/m-p/2261200#M42051</link>
      <description>&lt;P&gt;Just add a tMap after&amp;nbsp;tSplitRow&amp;nbsp;&lt;SPAN&gt;to filter empty rows, then use a sequence on the tMap right part to populate&amp;nbsp;the output field:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;"Row " + Numeric.sequence("Row", 1, 1) + ": " + row1.colA&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 21:18:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-help-on-regex-in-tSplit-rows/m-p/2261200#M42051</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-06-07T21:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on regex in tSplit rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-help-on-regex-in-tSplit-rows/m-p/2261201#M42052</link>
      <description>If you please don't mind, can you send me the zip file of the job which you are talking about as I find it difficult to imagine how exactly you propose the solution.
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Jun 2017 21:21:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-help-on-regex-in-tSplit-rows/m-p/2261201#M42052</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-07T21:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on regex in tSplit rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-help-on-regex-in-tSplit-rows/m-p/2261202#M42053</link>
      <description>&lt;P&gt;Here is the whole job based on tNormalize as suggested by&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLooAAG"&gt;@cterenzi&lt;/A&gt;:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 909px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lubc.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130792i24A6B44134052CA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lubc.png" alt="0683p000009Lubc.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;tMap to clean the record:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lt4z.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154854i76D5947C3187B3C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lt4z.png" alt="0683p000009Lt4z.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;tNormalize to split the field ColA with separator ","&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 785px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuOa.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134603i773E62C097FDE48A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuOa.png" alt="0683p000009LuOa.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;tMap to add "Row #:" before the split result:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lubm.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140640i73CB8E42833D475B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lubm.png" alt="0683p000009Lubm.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;And finally the result:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 629px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuYF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149319iC489714E98E3624B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuYF.png" alt="0683p000009LuYF.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 22:17:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-help-on-regex-in-tSplit-rows/m-p/2261202#M42053</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-06-07T22:17:06Z</dc:date>
    </item>
  </channel>
</rss>

