<?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: How to use String.split function in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-String-split-function/m-p/2308089#M79463</link>
    <description>Hello aishu,
&lt;BR /&gt;Create a routine or function to return the string array and use that function in tMap or you can also use this split function in tJavaFlex component to derive new columns.</description>
    <pubDate>Sat, 27 Apr 2013 06:12:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-04-27T06:12:48Z</dc:date>
    <item>
      <title>How to use String.split function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-String-split-function/m-p/2308088#M79462</link>
      <description>Hi All&lt;BR /&gt;How to use String.split function in tmap expersion?&lt;BR /&gt;Regards&lt;BR /&gt;Kranthi</description>
      <pubDate>Sat, 27 Apr 2013 06:08:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-String-split-function/m-p/2308088#M79462</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-27T06:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use String.split function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-String-split-function/m-p/2308089#M79463</link>
      <description>Hello aishu,
&lt;BR /&gt;Create a routine or function to return the string array and use that function in tMap or you can also use this split function in tJavaFlex component to derive new columns.</description>
      <pubDate>Sat, 27 Apr 2013 06:12:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-String-split-function/m-p/2308089#M79463</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-27T06:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to use String.split function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-String-split-function/m-p/2308090#M79464</link>
      <description>Hi vikram,
&lt;BR /&gt;can you post split routine code.
&lt;BR /&gt;Thanks for your reply.
&lt;BR /&gt;Regards
&lt;BR /&gt;Aishu</description>
      <pubDate>Sat, 27 Apr 2013 06:24:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-String-split-function/m-p/2308090#M79464</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-27T06:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use String.split function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-String-split-function/m-p/2308091#M79465</link>
      <description>Hi Aishu, 
&lt;BR /&gt;Could you elaborate your case with an example with input and expected output values? Maybe I can design a demo job with expression in tMap for you . 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina</description>
      <pubDate>Sat, 27 Apr 2013 07:21:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-String-split-function/m-p/2308091#M79465</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-27T07:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to use String.split function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-String-split-function/m-p/2308092#M79466</link>
      <description>Hi Sabrina,
&lt;BR /&gt;Source table have 2 fields like
&lt;BR /&gt;Telephone_1 , Telephone_2.
&lt;BR /&gt;This 2 fields have data like
&lt;BR /&gt;Telephone_1 Telephone_2
&lt;BR /&gt;-------------- ----------------
&lt;BR /&gt;9999999ext29 88888888ext30
&lt;BR /&gt;8888888ex30 666666666ext40
&lt;BR /&gt;My requirement is if Telephone_1,Telepohe_2 contains extension number,
&lt;BR /&gt;we split Telephone_1,Telephone_2 field data and insert the extension number
&lt;BR /&gt;data into another fields.
&lt;BR /&gt;output like
&lt;BR /&gt;========
&lt;BR /&gt;Telephone_1 Telephone_1_extension Telephone_2 Telephone_2_extension
&lt;BR /&gt;--------------- -------------------------- --------------- ---------------------------
&lt;BR /&gt;9999999 29 888888888 30
&lt;BR /&gt;8888888 30 666666666 40 
&lt;BR /&gt;I used tExtractdelemitedFields component for this requirement , it is working fine.
&lt;BR /&gt;source table have 5 fields , so i used 5 times tExtractdelemitedFields component in my job.
&lt;BR /&gt;Is there any alternate solution?
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Aishu</description>
      <pubDate>Sat, 27 Apr 2013 07:54:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-String-split-function/m-p/2308092#M79466</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-27T07:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to use String.split function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-String-split-function/m-p/2308093#M79467</link>
      <description>Hi Sabrina,
&lt;BR /&gt;Source table have 2 fields like
&lt;BR /&gt;Telephone_1 , Telephone_2.
&lt;BR /&gt;This 2 fields have data like
&lt;BR /&gt;Telephone_1 Telephone_2
&lt;BR /&gt;-------------- ----------------
&lt;BR /&gt;9999999ext29 88888888ext30
&lt;BR /&gt;8888888ex30 666666666ext40
&lt;BR /&gt;My requirement is if Telephone_1,Telepohe_2 contains extension number,
&lt;BR /&gt;we split Telephone_1,Telephone_2 field data and insert the extension number
&lt;BR /&gt;data into another fields.
&lt;BR /&gt;output like
&lt;BR /&gt;========
&lt;BR /&gt;Telephone_1 Telephone_1_extension Telephone_2 Telephone_2_extension
&lt;BR /&gt;--------------- -------------------------- --------------- ---------------------------
&lt;BR /&gt;9999999 29 888888888 30
&lt;BR /&gt;8888888 30 666666666 40 
&lt;BR /&gt;I used tExtractdelemitedFields component for this requirement , it is working fine.
&lt;BR /&gt;source table have 5 fields like Telephone_1 ,Telephone_2,Telephone_3,Telephone_4
&lt;BR /&gt;Telephone_5 so i used 5 times tExtractdelemitedFields component in my job.
&lt;BR /&gt;Is there any alternate solution?
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Aishu</description>
      <pubDate>Sat, 27 Apr 2013 08:25:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-String-split-function/m-p/2308093#M79467</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-27T08:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to use String.split function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-String-split-function/m-p/2308094#M79468</link>
      <description>Hi, &lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Telephone_1     Telephone_2&lt;BR /&gt;--------------     ----------------&lt;BR /&gt;9999999ext29  88888888ext30&lt;BR /&gt;8888888ex30   666666666ext40&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;From your source file, what is your Field Separator in tExtractDelimitedFields? &lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Sat, 27 Apr 2013 09:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-String-split-function/m-p/2308094#M79468</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-27T09:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to use String.split function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-String-split-function/m-p/2308095#M79469</link>
      <description>Hello aishu, 
&lt;BR /&gt;You can create a function to split the telephone number and extension. function should return the string array. And then you can use the array to assign the values to required columns using tJavaFlex.</description>
      <pubDate>Sat, 27 Apr 2013 09:49:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-String-split-function/m-p/2308095#M79469</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-27T09:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to use String.split function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-String-split-function/m-p/2308096#M79470</link>
      <description>Hi Sabrina,
&lt;BR /&gt;If Telephone_1 field contains ext,ex.
&lt;BR /&gt;I replace ext,ex as ';' using tReplace component,
&lt;BR /&gt;and i used semicolon ';' as a Field Separator in tExtractDelimitedFields.
&lt;BR /&gt;My job design like:
&lt;BR /&gt;tpostgresssqlinput-----------&amp;gt;tReplace-----------&amp;gt;tExtractDelemitedFields----------&amp;gt;tlogrow
&lt;BR /&gt;Thanks for your replay
&lt;BR /&gt;Regards
&lt;BR /&gt;Aishu</description>
      <pubDate>Sat, 27 Apr 2013 10:17:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-String-split-function/m-p/2308096#M79470</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-27T10:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to use String.split function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-String-split-function/m-p/2308097#M79471</link>
      <description>To use the .split method, which is what tExtractDelimitedFields uses, you do not need to replace the "ext" and "ex" with ";". It will work fine with "ext?" as the Field Separator. The manual way to use it in an expression would be: 
&lt;BR /&gt;row1.Telephone_1.split("ext?") for the phone number 
&lt;BR /&gt;row1.Telephone_1.split("ext?") for the extension 
&lt;BR /&gt;But when there is no extension, this will cause an ArrayIndexOutOfBoundsException. So you would need code like the following (in tJavaRow): 
&lt;BR /&gt;String[] parsedNumber = input_row.Telephone_1.split("ext?"); 
&lt;BR /&gt;output_row.Telephone_1 = parsedNumber; 
&lt;BR /&gt;if (parsedNumber.length&amp;gt;1) { 
&lt;BR /&gt; output_row.Telephone_1_extension = parsedNumber; 
&lt;BR /&gt;} else { 
&lt;BR /&gt; output_row.Telephone_1_extension = null; 
&lt;BR /&gt;} 
&lt;BR /&gt;parsedNumber = input_row.Telephone_2.split("ext?"); 
&lt;BR /&gt;output_row.Telephone_2 = parsedNumber; 
&lt;BR /&gt;etc... 
&lt;BR /&gt;It's a bit of a pain to replicate 5 times so you could convert it to a routine instead but since you only ever have at most two values as a result of the split, I would probably just use expressions like: 
&lt;BR /&gt;row1.Telephone_1.replaceAll("ext?\\d+","") for the phone number 
&lt;BR /&gt;row1.Telephone_1.replaceAll("^\\d+(ext?)?","") for the extension, noting that this will be "" not null if there's no extension</description>
      <pubDate>Mon, 29 Apr 2013 02:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-String-split-function/m-p/2308097#M79471</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2013-04-29T02:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to use String.split function</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-String-split-function/m-p/2308098#M79472</link>
      <description>Hi, Folks.&lt;BR /&gt;I have a similar problem using Talend for Big Data v.5.6.1.&lt;BR /&gt;I have one file (for example: csv) with a duplicate ids, but others data diference. &lt;BR /&gt;The first step I have to do is to aggregate all records duplicate in only one record based on the id key. &lt;BR /&gt;id | no_unid_forn | no_uni_forn&amp;nbsp; | capacidade | sg_unid_medida&lt;BR /&gt;1&amp;nbsp; | item1&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | CARTELA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 10,00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | &lt;BR /&gt;1&amp;nbsp; | item1&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | UNIDADE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 1,00&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; |&amp;nbsp; UN&lt;BR /&gt;1&amp;nbsp; | item1&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | CAIXA &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; | 7,00 &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp; CJ&lt;BR /&gt;2&amp;nbsp; | item2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | FRASCO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 500,00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | ML&lt;BR /&gt;2&amp;nbsp; | item2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | UNIDADE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 750,00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | UN&lt;BR /&gt;2&amp;nbsp; | item2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | LITRO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; |&amp;nbsp; 1000,00&amp;nbsp;&amp;nbsp;&amp;nbsp; | L&lt;BR /&gt;2&amp;nbsp; | item2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | CAIXA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; | 12,00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | CJ&lt;BR /&gt;And I do this using the component tDenormalize and get the following result.&lt;BR /&gt;id | no_unid_forn | no_uni_forn&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | capacidade&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | sg_unid_medida&lt;BR /&gt;1&amp;nbsp; | item1&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | CARTELA ; UNIDADE ; CAIXA &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 10,00 ; 1,00 ; 7,00 &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; | &amp;nbsp; ; UN ; CX&lt;BR /&gt;2&amp;nbsp; | item2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | FRASCO ; UNIDADE ; LITRO ; CAIXA&amp;nbsp; | 500,00 ; 750,00 ; 1000,00 ; 12,00 | ML ; UN ; L ; CX&lt;BR /&gt;So, now I need to create a new_field with the composition of these fields (no_unid_forn, capacidade, sg_unid_medida) in order, like that:&lt;BR /&gt;id | no_unid_forn | new_field&lt;BR /&gt;1&amp;nbsp; | item1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | CARTELA (10,00 - ) ; UNIDADE (1,00 - UN) ; CAIXA (7,00 - CX)&lt;BR /&gt;2&amp;nbsp; | item2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | FRASCO (500,00 - ML) ; UNIDADE (750,00 - UN) ; LITRO (1000,00 - L) ; CAIXA (12,00 - CX)&lt;BR /&gt;How can I concatenate these fields (no_unid_forn, capacidade, sg_unid_medida) in order of occurrence?&lt;BR /&gt;&amp;nbsp;</description>
      <pubDate>Thu, 10 Mar 2016 18:49:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-String-split-function/m-p/2308098#M79472</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-10T18:49:59Z</dc:date>
    </item>
  </channel>
</rss>

