<?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: Removing characters before second occurence of space using tMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Removing-characters-before-second-occurence-of-space-using-tMap/m-p/2356191#M121774</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Maybe not the better way but should work:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;row1.sentence.replaceAll("^.* ", "").replaceAll("^.* ", "")&lt;/PRE&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;TRF</description>
    <pubDate>Mon, 27 Mar 2017 08:55:21 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2017-03-27T08:55:21Z</dc:date>
    <item>
      <title>Removing characters before second occurence of space using tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Removing-characters-before-second-occurence-of-space-using-tMap/m-p/2356190#M121773</link>
      <description>&lt;P&gt;Hi Anyone,&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;I just wanted to ask if how could I remove all the characters before the&amp;nbsp;second&amp;nbsp;occurrence of space in a string using tMap?&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;Input: "This is a sentence"&lt;BR /&gt;Ouput: "a sentence"&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 07:21:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Removing-characters-before-second-occurence-of-space-using-tMap/m-p/2356190#M121773</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-27T07:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Removing characters before second occurence of space using tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Removing-characters-before-second-occurence-of-space-using-tMap/m-p/2356191#M121774</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Maybe not the better way but should work:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;row1.sentence.replaceAll("^.* ", "").replaceAll("^.* ", "")&lt;/PRE&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;TRF</description>
      <pubDate>Mon, 27 Mar 2017 08:55:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Removing-characters-before-second-occurence-of-space-using-tMap/m-p/2356191#M121774</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-03-27T08:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Removing characters before second occurence of space using tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Removing-characters-before-second-occurence-of-space-using-tMap/m-p/2356192#M121775</link>
      <description>You may write routine which can return the position and use the same in the substring method to get the desired output. 
&lt;BR /&gt;or alternatively by overloading the indexof method and use expression like this : row1.Input.indexOf(" ", row1.Input.indexOf(" ")+1) to get the index position of the 2nd space and use the value in substring to get the desired string:&amp;nbsp;row1.Input.substring(Var.var1+1)&amp;nbsp; 
&lt;BR /&gt;Also for a generic solution of index location look up ordinalIndexOf method in&amp;nbsp; 
&lt;A href="http://commons.apache.org/proper/commons-lang/javadocs/api-2.6/org/apache/commons/lang/StringUtils.html#ordinalIndexOf(java.lang.String," target="_blank" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;</description>
      <pubDate>Mon, 27 Mar 2017 17:58:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Removing-characters-before-second-occurence-of-space-using-tMap/m-p/2356192#M121775</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-27T17:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Removing characters before second occurence of space using tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Removing-characters-before-second-occurence-of-space-using-tMap/m-p/2356193#M121776</link>
      <description>Hi 
&lt;B&gt;TRF&lt;/B&gt;, 
&lt;BR /&gt;Thank you for your reply. Sorry for not responding right away. I've been experiencing connectivity issues. 
&lt;BR /&gt;Hi 
&lt;B&gt;rana.abhimanyu90&lt;/B&gt;, 
&lt;BR /&gt;Thank you for helping me again, let me try to use your approach. Thanks!</description>
      <pubDate>Tue, 28 Mar 2017 01:12:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Removing-characters-before-second-occurence-of-space-using-tMap/m-p/2356193#M121776</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-28T01:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Removing characters before second occurence of space using tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Removing-characters-before-second-occurence-of-space-using-tMap/m-p/2356194#M121777</link>
      <description>Hi 
&lt;B&gt;rana.abhimanyu90&lt;/B&gt;,
&lt;BR /&gt;This helped resolve my issue. Also, thank you for the additional info. Thanks!</description>
      <pubDate>Tue, 28 Mar 2017 01:34:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Removing-characters-before-second-occurence-of-space-using-tMap/m-p/2356194#M121777</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-28T01:34:31Z</dc:date>
    </item>
  </channel>
</rss>

