<?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: 2 parts to a string find/replace issue in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/2-parts-to-a-string-find-replace-issue/m-p/2218313#M13562</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;SPAN&gt;Nikhil Thampi, worked a treat.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 04 Nov 2018 22:19:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-11-04T22:19:47Z</dc:date>
    <item>
      <title>2 parts to a string find/replace issue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/2-parts-to-a-string-find-replace-issue/m-p/2218311#M13560</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want to see how I could achieve 2 things.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1.&amp;nbsp; Search and replace a string with blank for everything inside brackets including the brackets. e.g.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &lt;STRONG&gt;original text:&lt;/STRONG&gt;&amp;nbsp;articulate the interaction of ecology with human society, including policy and legal frameworks for management of biological resources (K, A, E, I)&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;New Text:&amp;nbsp;&lt;/STRONG&gt;articulate the interaction of ecology with human society, including policy and legal frameworks for management of biological resources&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;2.&amp;nbsp; With that text inside the brackets, get it and put it into a new field.&amp;nbsp; This time not including brackets.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;original&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Field 1&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;Field 2&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;werwerwr&amp;nbsp;(K,A,E,I)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;original&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Field 1&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;Field 2&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;werwerwr&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; K,A,E,I&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 23:03:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/2-parts-to-a-string-find-replace-issue/m-p/2218311#M13560</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-01T23:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: 2 parts to a string find/replace issue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/2-parts-to-a-string-find-replace-issue/m-p/2218312#M13561</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 screen shot below for job output.&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="0683p000009M0on.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154936i43BA04A5AD71EE15/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0on.png" alt="0683p000009M0on.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&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="0683p000009M0QJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147793i60502353F68B6EC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0QJ.png" alt="0683p000009M0QJ.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; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The transformations to be used are as below&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;For string first part -&amp;gt;     

row1.input_data.substring(0,row1.input_data.indexOf("(")) 

For string second part -&amp;gt;   

row1.input_data.substring(row1.input_data.indexOf("(")+1,row1.input_data.indexOf(")")) &lt;/PRE&gt; 
&lt;P&gt;If the answer has helped you, could you please 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;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 08:44:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/2-parts-to-a-string-find-replace-issue/m-p/2218312#M13561</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-02T08:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: 2 parts to a string find/replace issue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/2-parts-to-a-string-find-replace-issue/m-p/2218313#M13562</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;SPAN&gt;Nikhil Thampi, worked a treat.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Nov 2018 22:19:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/2-parts-to-a-string-find-replace-issue/m-p/2218313#M13562</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-04T22:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: 2 parts to a string find/replace issue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/2-parts-to-a-string-find-replace-issue/m-p/2218314#M13563</link>
      <description>&lt;P&gt;&amp;nbsp;Thanks buddy, my requirement similar to this, except having some more conditions like below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) 6 fields separated by Pipe("|").&lt;/P&gt;
&lt;P&gt;2) If the 5th field has values "R", then only 6 field is like "[123:11:xyz:00]", otherwise not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, I need to first filter records using the above condition, which I am performing in tmap and separating the required 6 field after removing brackets, but now I want to separate this field(123:11:xyz:00) in the same tmap component having ":" separator and assign values to field1,field2,field3,field4 e.g. field1 would be 123, field2 would be 11, field3 would be xyz and field4 would be 00 and here I am stucking, can someone suggest on how to proceed on this. I only want to use one component( I think tmap should do the task).&lt;/P&gt;
&lt;P&gt;I am new to Talend, earlier I was calculating this value in reformat component in ab initio after declaring variable and fetching the fields in vectors.&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 18:58:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/2-parts-to-a-string-find-replace-issue/m-p/2218314#M13563</guid>
      <dc:creator>mani1304</dc:creator>
      <dc:date>2019-05-21T18:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: 2 parts to a string find/replace issue</title>
      <link>https://community.qlik.com/t5/Talend-Studio/2-parts-to-a-string-find-replace-issue/m-p/2218315#M13564</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000006eKOgAAM"&gt;@nthampi&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;if my input_data has a combination of values with parenthesis and without parenthesis, can you please provide what the command should be? for example, my input_data may contain the following:&lt;/P&gt; 
&lt;P&gt;1. abcdef (123)&lt;/P&gt; 
&lt;P&gt;2. hijklmn&lt;/P&gt; 
&lt;P&gt;3. wxyz (wxyz) (456)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;i would want my output to be:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; field1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; field2&lt;/P&gt; 
&lt;P&gt;1. abcdef&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;123&lt;/P&gt; 
&lt;P&gt;2. hijlkmn&lt;/P&gt; 
&lt;P&gt;3. wxyz (wxyz)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;456&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 21:54:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/2-parts-to-a-string-find-replace-issue/m-p/2218315#M13564</guid>
      <dc:creator>zalibra</dc:creator>
      <dc:date>2020-02-10T21:54:36Z</dc:date>
    </item>
  </channel>
</rss>

