<?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: [resolved] Getting the occurrence position of string or charact in a given string in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Getting-the-occurrence-position-of-string-or-charact-in/m-p/2369090#M132274</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I need to implement this talend .. this is currently written in abinitio.Please help urgently&lt;/P&gt;&lt;P&gt;(is_defined(lookup("Lookup_File", ((decimal("\307"))re_index(id, "[a-zA-Z]+") - 1),string_substring(, (decimal("\307"))re_index(id, "[a-zA-Z]+") , string_length(id))).name))&lt;/P&gt;</description>
    <pubDate>Tue, 11 Aug 2020 19:25:52 GMT</pubDate>
    <dc:creator>JG6</dc:creator>
    <dc:date>2020-08-11T19:25:52Z</dc:date>
    <item>
      <title>[resolved] Getting the occurrence position of string or charact in a given string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Getting-the-occurrence-position-of-string-or-charact-in/m-p/2369081#M132265</link>
      <description>Hi,&lt;BR /&gt;I have column with the data like &lt;B&gt;123~456~12345~skjdh~hjg~fhjd~dghjuy~ether~SDFH~sdghtk~louiob &amp;nbsp;&lt;/B&gt;now in this data i want to know the index of nth occurrence of character "~" if i say 4th occurrence it should return 20 to me, &amp;nbsp;if i say 2nd occurrence it should return 8 to me, any Idea how to achieve this&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Sat, 16 Nov 2024 11:33:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Getting-the-occurrence-position-of-string-or-charact-in/m-p/2369081#M132265</guid>
      <dc:creator>ashok5</dc:creator>
      <dc:date>2024-11-16T11:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Getting the occurrence position of string or charact in a given string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Getting-the-occurrence-position-of-string-or-charact-in/m-p/2369082#M132266</link>
      <description>Hi ashokvv,
&lt;BR /&gt;If the data is coming in the column... could not understand the concept of "i say".. can you elaborate with expected output for current data and one more sample data?
&lt;BR /&gt;Vaibhav</description>
      <pubDate>Wed, 30 Jul 2014 10:59:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Getting-the-occurrence-position-of-string-or-charact-in/m-p/2369082#M132266</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-30T10:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Getting the occurrence position of string or charact in a given string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Getting-the-occurrence-position-of-string-or-charact-in/m-p/2369083#M132267</link>
      <description>hi,&amp;nbsp;&lt;BR /&gt;have a look at :&amp;nbsp;https://stackoverflow.com/questions/5034442/java-indexes-of-all-occurrences-of-character-in-a-string&lt;BR /&gt;hope it help&lt;BR /&gt;regards&lt;BR /&gt;laurent</description>
      <pubDate>Wed, 30 Jul 2014 11:02:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Getting-the-occurrence-position-of-string-or-charact-in/m-p/2369083#M132267</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-30T11:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Getting the occurrence position of string or charact in a given string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Getting-the-occurrence-position-of-string-or-charact-in/m-p/2369084#M132268</link>
      <description>Hi Vaibhav&lt;BR /&gt;I have column with the data like&amp;nbsp;123~456~12345~skjdh~hjg~fhjd~dghjuy~ether~SDFH~sdghtk~louiob &amp;nbsp;now in this data i want to know the index of nth occurrence of &amp;nbsp;specific character&amp;nbsp;&lt;BR /&gt;I was expecting this functionality through a built in function.&lt;BR /&gt;functionxyz(column1,"~",4) should return 20&amp;nbsp;&lt;BR /&gt;functionxyz(column1,"~",2) should return 8&lt;BR /&gt;functionxyz(column1,"4",2) should return 12&lt;BR /&gt;functionxyz(column1,"1",2) should return 9&lt;BR /&gt;Like Wise..</description>
      <pubDate>Wed, 30 Jul 2014 12:03:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Getting-the-occurrence-position-of-string-or-charact-in/m-p/2369084#M132268</guid>
      <dc:creator>ashok5</dc:creator>
      <dc:date>2014-07-30T12:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Getting the occurrence position of string or charact in a given string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Getting-the-occurrence-position-of-string-or-charact-in/m-p/2369085#M132269</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Hi ashokvv,&lt;BR /&gt;If the data is coming in the column... could not understand the concept of "i say".. can you elaborate with expected output for current data and one more sample data?&lt;BR /&gt;Vaibhav&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Hi Vaibhav
&lt;BR /&gt;I have column with the data like&amp;nbsp;123~456~12345~skjdh~hjg~fhjd~dghjuy~ether~SDFH~sdghtk~louiob &amp;nbsp;now in this data i want to know the index of nth occurrence of &amp;nbsp;specific character&amp;nbsp;
&lt;BR /&gt;I was expecting this functionality through a built in function.
&lt;BR /&gt;functionxyz(column1,"~",4) should return 20&amp;nbsp;
&lt;BR /&gt;functionxyz(column1,"~",2) should return 8
&lt;BR /&gt;functionxyz(column1,"4",2) should return 12
&lt;BR /&gt;functionxyz(column1,"1",2) should return 9
&lt;BR /&gt;Like Wise..</description>
      <pubDate>Wed, 30 Jul 2014 12:07:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Getting-the-occurrence-position-of-string-or-charact-in/m-p/2369085#M132269</guid>
      <dc:creator>ashok5</dc:creator>
      <dc:date>2014-07-30T12:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Getting the occurrence position of string or charact in a given string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Getting-the-occurrence-position-of-string-or-charact-in/m-p/2369086#M132270</link>
      <description>Hi,
&lt;BR /&gt;You can modify the code recommended by laurent...
&lt;BR /&gt;In tJava i tested for&amp;nbsp;
&lt;BR /&gt;String foo = "123~456~12345~skjdh~hjg~fhjd~dghjuy~ether~SDFH~sdghtk~louiob";
&lt;BR /&gt;System.out.println(getIndex.functionxyz(foo,"~"));
&lt;BR /&gt;Create a routine to handle this: (need modification as per your requirement or logic)
&lt;BR /&gt;
&lt;FONT color="#9999ff"&gt;package routines;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#9999ff"&gt;public class getIndex {&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#9999ff"&gt;public static int functionxyz(String message, String delimiter) {&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#9999ff"&gt;int index = message.indexOf(delimiter);&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#9999ff"&gt;while (index &amp;gt;= 0) {&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#9999ff"&gt;&amp;nbsp; &amp;nbsp;System.out.println(index);&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#9999ff"&gt;&amp;nbsp; &amp;nbsp;index = message.indexOf(delimiter, index + 1);&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#9999ff"&gt;if (index == 7)&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#9999ff"&gt;{&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#9999ff"&gt;System.out.println("This is Second return for the 7th position " + 15);&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#9999ff"&gt;}&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#9999ff"&gt;}&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#9999ff"&gt;return index;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#9999ff"&gt;}&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#9999ff"&gt;}&lt;/FONT&gt;
&lt;BR /&gt;Hope it helps.
&lt;BR /&gt;Thanks
&lt;BR /&gt;Vaibhav</description>
      <pubDate>Wed, 30 Jul 2014 12:34:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Getting-the-occurrence-position-of-string-or-charact-in/m-p/2369086#M132270</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-30T12:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Getting the occurrence position of string or charact in a given string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Getting-the-occurrence-position-of-string-or-charact-in/m-p/2369087#M132271</link>
      <description>thanks&amp;nbsp; 
&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;sanvaibhav&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt; 
&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;</description>
      <pubDate>Wed, 30 Jul 2014 15:13:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Getting-the-occurrence-position-of-string-or-charact-in/m-p/2369087#M132271</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-30T15:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Getting the occurrence position of string or charact in a given string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Getting-the-occurrence-position-of-string-or-charact-in/m-p/2369088#M132272</link>
      <description>Hi sanvaibhav&amp;nbsp;
&lt;BR /&gt;Thanks for you input
&lt;BR /&gt;I have done this some modifications in the code and is working fine
&lt;BR /&gt;package routines;
&lt;BR /&gt;public class Customfunctions {
&lt;BR /&gt; public static int Occurrenceindex(String string, String letter, int i) {
&lt;BR /&gt; if (string == null|| letter == null || &amp;nbsp;i == 0){
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; return 0;
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; } else {
&lt;BR /&gt; int index = string.indexOf(letter);
&lt;BR /&gt; while (i &amp;gt; 1) {
&lt;BR /&gt; index = string.indexOf(letter, index + 1);
&lt;BR /&gt; i=i-1;
&lt;BR /&gt; }
&lt;BR /&gt; return index;
&lt;BR /&gt; }
&lt;BR /&gt; }
&lt;BR /&gt;}
&lt;BR /&gt;Regards
&lt;BR /&gt;Ashok</description>
      <pubDate>Thu, 31 Jul 2014 07:16:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Getting-the-occurrence-position-of-string-or-charact-in/m-p/2369088#M132272</guid>
      <dc:creator>ashok5</dc:creator>
      <dc:date>2014-07-31T07:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Getting the occurrence position of string or charact in a given string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Getting-the-occurrence-position-of-string-or-charact-in/m-p/2369089#M132273</link>
      <description>Hi Ashok,
&lt;BR /&gt;Happy that you could re-use the code and implement it for your need.
&lt;BR /&gt;Thanks for posting updated code.
&lt;BR /&gt;Vaibhav</description>
      <pubDate>Thu, 31 Jul 2014 09:08:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Getting-the-occurrence-position-of-string-or-charact-in/m-p/2369089#M132273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-31T09:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Getting the occurrence position of string or charact in a given string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Getting-the-occurrence-position-of-string-or-charact-in/m-p/2369090#M132274</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I need to implement this talend .. this is currently written in abinitio.Please help urgently&lt;/P&gt;&lt;P&gt;(is_defined(lookup("Lookup_File", ((decimal("\307"))re_index(id, "[a-zA-Z]+") - 1),string_substring(, (decimal("\307"))re_index(id, "[a-zA-Z]+") , string_length(id))).name))&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 19:25:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Getting-the-occurrence-position-of-string-or-charact-in/m-p/2369090#M132274</guid>
      <dc:creator>JG6</dc:creator>
      <dc:date>2020-08-11T19:25:52Z</dc:date>
    </item>
  </channel>
</rss>

