<?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: Using StringHandling.CHANGE to replace characters in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Using-StringHandling-CHANGE-to-replace-characters/m-p/2317701#M88121</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;Please refer the below flow.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 785px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M68s.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149021iF298B054760D56C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M68s.png" alt="0683p000009M68s.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The functions are added in tMap as shown below.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M68x.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134649i9B03DE19C5238FDD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M68x.png" alt="0683p000009M68x.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The functions used are as shown below.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;second_time      -&amp;gt;           row1.data.indexOf("-", row1.data.indexOf("-") + 1)

first_part       -&amp;gt;           "3910" + StringHandling.CHANGE(row1.data.substring(0,Var.second_time) ,"\\D","") 

second_part      -&amp;gt;           row1.data.substring(Var.second_time+1)&lt;/PRE&gt; 
&lt;P&gt;I would request to spare a second to mark the topic as resolved. Kudos are also welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jul 2019 04:14:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-04T04:14:14Z</dc:date>
    <item>
      <title>Using StringHandling.CHANGE to replace characters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-StringHandling-CHANGE-to-replace-characters/m-p/2317700#M88120</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have some code that worked fine last time I ran my job about a year ago (it is a yearly file), but now isn't giving me the same results.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Incoming data examples:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;00001-010-C&lt;BR /&gt;00001-010-D&lt;BR /&gt;00001-010-E&lt;BR /&gt;00001-010-F&lt;BR /&gt;00001-010-H&lt;BR /&gt;00001-010-I&lt;BR /&gt;00001-010-J&lt;BR /&gt;00001-010-L&lt;BR /&gt;00001-010-M&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;P&gt;Output data:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;391000001001&lt;BR /&gt;391000001005&lt;BR /&gt;391000001006&lt;BR /&gt;391000001010&lt;BR /&gt;391000001010&lt;BR /&gt;391000001010&lt;BR /&gt;391000001010&lt;BR /&gt;391000001010&lt;BR /&gt;391000001010&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Code:&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;"3910"&lt;/SPAN&gt; + StringHandling.CHANGE(MiTaxINput.TaxID ,&lt;SPAN class="s1"&gt;"\\D"&lt;/SPAN&gt;,&lt;SPAN class="s1"&gt;""&lt;/SPAN&gt;)&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;I need to keep the letter at the end, but not sure what to change to make that happen.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 19:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-StringHandling-CHANGE-to-replace-characters/m-p/2317700#M88120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-03T19:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using StringHandling.CHANGE to replace characters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-StringHandling-CHANGE-to-replace-characters/m-p/2317701#M88121</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;Please refer the below flow.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 785px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M68s.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149021iF298B054760D56C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M68s.png" alt="0683p000009M68s.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The functions are added in tMap as shown below.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M68x.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134649i9B03DE19C5238FDD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M68x.png" alt="0683p000009M68x.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The functions used are as shown below.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;second_time      -&amp;gt;           row1.data.indexOf("-", row1.data.indexOf("-") + 1)

first_part       -&amp;gt;           "3910" + StringHandling.CHANGE(row1.data.substring(0,Var.second_time) ,"\\D","") 

second_part      -&amp;gt;           row1.data.substring(Var.second_time+1)&lt;/PRE&gt; 
&lt;P&gt;I would request to spare a second to mark the topic as resolved. Kudos are also welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2019 04:14:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-StringHandling-CHANGE-to-replace-characters/m-p/2317701#M88121</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-04T04:14:14Z</dc:date>
    </item>
  </channel>
</rss>

