<?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: how to use substring in talend? in Installing and Upgrading</title>
    <link>https://community.qlik.com/t5/Installing-and-Upgrading/how-to-use-substring-in-talend/m-p/2350503#M836</link>
    <description>Hello guy,&lt;BR /&gt;what if I have a column with URL"s like:&lt;BR /&gt;&lt;A href="http://www.mydomain-1.com/a/b/c/image1.jpg" rel="nofollow noopener noreferrer"&gt;http://www.mydomain-1.com/a/b/c/image1.jpg&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.mydomain-2.com/j/u/image2.jpg" rel="nofollow noopener noreferrer"&gt;http://www.mydomain-2.com/j/u/image2.jpg&lt;/A&gt;&lt;BR /&gt;.....&lt;BR /&gt;&lt;A href="http://www.mydomain-x.com/f/r/y/w/image20000.jpg" rel="nofollow noopener noreferrer"&gt;http://www.mydomain-x.com/f/r/y/w/image20000.jpg&lt;/A&gt;&lt;BR /&gt;The ulrs have not the same lenght, domains and subfolders. &lt;BR /&gt;How can I substract only the base name of the image, like:&lt;BR /&gt;image1.jpg&lt;BR /&gt;image2.jpg&lt;BR /&gt;...&lt;BR /&gt;image20000.jpg&lt;BR /&gt;Thank you for your help,&lt;BR /&gt;Lucian</description>
    <pubDate>Sun, 06 Apr 2014 07:19:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-04-06T07:19:10Z</dc:date>
    <item>
      <title>how to use substring in talend?</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/how-to-use-substring-in-talend/m-p/2350501#M834</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;how to use substing in talend?</description>
      <pubDate>Sat, 16 Nov 2024 12:14:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/how-to-use-substring-in-talend/m-p/2350501#M834</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to use substring in talend?</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/how-to-use-substring-in-talend/m-p/2350502#M835</link>
      <description>Hi&lt;BR /&gt;public String substring(int beginIndex)&lt;BR /&gt;public String substring(int beginIndex, int endIndex)&lt;BR /&gt;Here are two Java substring methods under TOS.&lt;BR /&gt;For example, row1.value.substring(1,25)&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Thu, 12 Jul 2012 09:45:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/how-to-use-substring-in-talend/m-p/2350502#M835</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-12T09:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to use substring in talend?</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/how-to-use-substring-in-talend/m-p/2350503#M836</link>
      <description>Hello guy,&lt;BR /&gt;what if I have a column with URL"s like:&lt;BR /&gt;&lt;A href="http://www.mydomain-1.com/a/b/c/image1.jpg" rel="nofollow noopener noreferrer"&gt;http://www.mydomain-1.com/a/b/c/image1.jpg&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.mydomain-2.com/j/u/image2.jpg" rel="nofollow noopener noreferrer"&gt;http://www.mydomain-2.com/j/u/image2.jpg&lt;/A&gt;&lt;BR /&gt;.....&lt;BR /&gt;&lt;A href="http://www.mydomain-x.com/f/r/y/w/image20000.jpg" rel="nofollow noopener noreferrer"&gt;http://www.mydomain-x.com/f/r/y/w/image20000.jpg&lt;/A&gt;&lt;BR /&gt;The ulrs have not the same lenght, domains and subfolders. &lt;BR /&gt;How can I substract only the base name of the image, like:&lt;BR /&gt;image1.jpg&lt;BR /&gt;image2.jpg&lt;BR /&gt;...&lt;BR /&gt;image20000.jpg&lt;BR /&gt;Thank you for your help,&lt;BR /&gt;Lucian</description>
      <pubDate>Sun, 06 Apr 2014 07:19:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/how-to-use-substring-in-talend/m-p/2350503#M836</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-06T07:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to use substring in talend?</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/how-to-use-substring-in-talend/m-p/2350504#M837</link>
      <description>Hi, &lt;BR /&gt;You're obliged to create your function and add it to your talend studio, in repository&amp;gt;code&amp;gt;routine&lt;BR /&gt;&lt;BR /&gt;When your fonction added you will find it in tMap in the category "defined by user". &lt;BR /&gt;    &lt;BR /&gt;This is a simple function in java that i have made on Eclipse, i have tested on two exemple and  i have the right result that you are looking for. &lt;BR /&gt;         &lt;BR /&gt;String Str = new String("http://www.mydomain-1.com/a/b/c/image1.jpg");&lt;BR /&gt;	      &lt;BR /&gt;	      System.out.print("Found Index :" );&lt;BR /&gt;	      System.out.println(Str.lastIndexOf("/"));&lt;BR /&gt;	      int beginIndex = Str.lastIndexOf("/")+1; &lt;BR /&gt;	      &lt;BR /&gt;	      Str = Str.substring(beginIndex); &lt;BR /&gt;	      System.out.println(Str);	 &lt;BR /&gt;	      &lt;BR /&gt;	      String Str1 = new String("http://www.mydomain-x.com/f/r/y/w/image20000.jpg");&lt;BR /&gt;	      &lt;BR /&gt;	      System.out.print("Found Index :" );&lt;BR /&gt;	      System.out.println(Str1.lastIndexOf("/"));&lt;BR /&gt;	      int beginIndex1 = Str1.lastIndexOf("/")+1; &lt;BR /&gt;	      &lt;BR /&gt;	      Str1 = Str1.substring(beginIndex1); &lt;BR /&gt;	      System.out.println(Str1);&lt;BR /&gt;results : &lt;BR /&gt;Found Index :31&lt;BR /&gt;image1.jpg&lt;BR /&gt;Found Index :33&lt;BR /&gt;image20000.jpg	 &lt;BR /&gt;It is an idea and you can adapt and optimize it.&lt;BR /&gt;Best regards</description>
      <pubDate>Sun, 06 Apr 2014 10:50:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/how-to-use-substring-in-talend/m-p/2350504#M837</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-06T10:50:38Z</dc:date>
    </item>
  </channel>
</rss>

