<?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 Split in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Split/m-p/2357738#M122949</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have this text:&lt;/P&gt;&lt;P&gt;25.815.53.6&lt;/P&gt;&lt;P&gt;And I need to get:&lt;/P&gt;&lt;P&gt;25.8&lt;BR /&gt;15.5&lt;BR /&gt;3.6&lt;/P&gt;&lt;P&gt;Or this text:&lt;/P&gt;&lt;P&gt;22.816.210.2&lt;/P&gt;&lt;P&gt;And I want to get:&lt;/P&gt;&lt;P&gt;22.8&lt;BR /&gt;16.2&lt;BR /&gt;10.2&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2018 16:18:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-13T16:18:07Z</dc:date>
    <item>
      <title>Split</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Split/m-p/2357738#M122949</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have this text:&lt;/P&gt;&lt;P&gt;25.815.53.6&lt;/P&gt;&lt;P&gt;And I need to get:&lt;/P&gt;&lt;P&gt;25.8&lt;BR /&gt;15.5&lt;BR /&gt;3.6&lt;/P&gt;&lt;P&gt;Or this text:&lt;/P&gt;&lt;P&gt;22.816.210.2&lt;/P&gt;&lt;P&gt;And I want to get:&lt;/P&gt;&lt;P&gt;22.8&lt;BR /&gt;16.2&lt;BR /&gt;10.2&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 16:18:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Split/m-p/2357738#M122949</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-13T16:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Split</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Split/m-p/2357739#M122950</link>
      <description>&lt;P&gt;I have had to guess at your requirement here. I guessed the following....&lt;/P&gt;
&lt;P&gt;1) Every number will have a decimal point&lt;/P&gt;
&lt;P&gt;2) Every decimal point will be followed by 1 decimal digit&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If those guesses are correct, this code will work in a tJava....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;String foo = "25.815.53.622.816.210.2";

while(foo.indexOf('.')&amp;gt;-1){
	int position = foo.indexOf('.')+2;
	String value = foo.substring(0,position);
	foo = foo.substring(position);
	System.out.println(value);
}&lt;/PRE&gt;
&lt;P&gt;Next, you need to convert your data into rows. This can be done using a tJavaFlex. I will assume that you can get the data into a globalMap variable. If not, look at the tSetGlobalVar or tFlowToIterate components. Once your data is in a globalMap variable, you can use the following code with your tJavaFlex....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Start Code&lt;/P&gt;
&lt;PRE&gt;String data = ((String)globalMap.get("mydata"));
while(data.indexOf('.')&amp;gt;-1){&lt;/PRE&gt;
&lt;P&gt;Main Code&lt;/P&gt;
&lt;PRE&gt;int position = data.indexOf('.')+2;
row1.value = data.substring(0,position);
data = data.substring(position);&lt;/PRE&gt;
&lt;P&gt;End Code&lt;/P&gt;
&lt;PRE&gt;}&lt;/PRE&gt;
&lt;P&gt;This will output your data in separate rows.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 11:44:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Split/m-p/2357739#M122950</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-14T11:44:41Z</dc:date>
    </item>
  </channel>
</rss>

