<?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: String Handling in Talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/String-Handling-in-Talend/m-p/2264131#M44081</link>
    <description>&lt;P&gt;For Case 1:&lt;/P&gt;
&lt;P&gt;Use replaceAll(&lt;SPAN class="pun"&gt;[^&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;a&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;zA&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;Z&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;]&lt;/SPAN&gt;, "") in tMap expression builder to get rid of Alphabets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For Case2:&lt;/P&gt;
&lt;P&gt;Put your desired value in a context variable(mind the datatype it should be int) and use that in split function.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row7.data.split(",",context.value)&amp;nbsp;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let us know if this helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Nov 2019 13:16:37 GMT</pubDate>
    <dc:creator>Raghuram_Puram</dc:creator>
    <dc:date>2019-11-20T13:16:37Z</dc:date>
    <item>
      <title>String Handling in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-Handling-in-Talend/m-p/2264130#M44080</link>
      <description>&lt;P&gt;Hi All Experts ,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have multiple cases I am handling in Tmap .&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Case 1 :&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;I have string like "125,12NC"&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; How to remove&amp;nbsp; Alphabetic characters from above string in Tmap ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Case 2 :&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;I have string like :&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;"1812281228C125,12NCOL851711644078226,851711644078226 NG KIM LAI"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Out of this string , I have to take&amp;nbsp; only last&amp;nbsp; string which is have splitted using below function&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;row7.data.split(",") [ 2 ] &amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But instead of '2' i have to put a generic code which will take a last index only in [] . How to do that ?&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I tried using&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;row7.data.split(",") [ row7.data.lastIndexof(",")]&amp;nbsp; &amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But this did not worked out .&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can you please help me how to&amp;nbsp; achieve above scenarios .&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:04:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-Handling-in-Talend/m-p/2264130#M44080</guid>
      <dc:creator>gtaware</dc:creator>
      <dc:date>2024-11-16T04:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: String Handling in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-Handling-in-Talend/m-p/2264131#M44081</link>
      <description>&lt;P&gt;For Case 1:&lt;/P&gt;
&lt;P&gt;Use replaceAll(&lt;SPAN class="pun"&gt;[^&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;a&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;zA&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;Z&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;]&lt;/SPAN&gt;, "") in tMap expression builder to get rid of Alphabets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For Case2:&lt;/P&gt;
&lt;P&gt;Put your desired value in a context variable(mind the datatype it should be int) and use that in split function.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row7.data.split(",",context.value)&amp;nbsp;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let us know if this helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 13:16:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-Handling-in-Talend/m-p/2264131#M44081</guid>
      <dc:creator>Raghuram_Puram</dc:creator>
      <dc:date>2019-11-20T13:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: String Handling in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-Handling-in-Talend/m-p/2264132#M44082</link>
      <description>&lt;P&gt;For Case 2: If you want always the last value then you can do&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;row7.data.split(",")[row7.data.split(",").length-1];&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, 20 Nov 2019 16:01:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-Handling-in-Talend/m-p/2264132#M44082</guid>
      <dc:creator>dbeltritti</dc:creator>
      <dc:date>2019-11-20T16:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: String Handling in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-Handling-in-Talend/m-p/2264133#M44083</link>
      <description>&lt;P&gt;@ Raghuram ,&lt;/P&gt; 
&lt;P&gt;I have tried below expression but throwing me error ;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;(row7.data.substring(11,19)).replaceAll([^a-zA-Z], "")&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;For Case 2 :&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I ant go with that solution . Because I&amp;nbsp; am not sure which Index&amp;nbsp; Number will be considered as last one . It may 1,2,3,4 ..based on our splitting .&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 05:57:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-Handling-in-Talend/m-p/2264133#M44083</guid>
      <dc:creator>gtaware</dc:creator>
      <dc:date>2019-11-21T05:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: String Handling in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-Handling-in-Talend/m-p/2264134#M44084</link>
      <description>&lt;P&gt;Thanks . For Case 2 : That's a Right Solution .&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 05:59:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-Handling-in-Talend/m-p/2264134#M44084</guid>
      <dc:creator>gtaware</dc:creator>
      <dc:date>2019-11-21T05:59:26Z</dc:date>
    </item>
  </channel>
</rss>

