<?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: Get files names and remove extensions in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Get-files-names-and-remove-extensions/m-p/2378079#M139890</link>
    <description>&lt;P&gt;Hi you can write a routine with this function :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;public static String &lt;B&gt;removeFileExtension&lt;/B&gt;(String filename, &lt;B&gt;boolean&lt;/B&gt; removeAllExtensions) {&lt;/P&gt;&lt;P&gt;    if (filename == null || filename.isEmpty()) {&lt;/P&gt;&lt;P&gt;        return filename;&lt;/P&gt;&lt;P&gt;    }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;    &lt;B&gt;String&lt;/B&gt; extPattern = "(?&amp;lt;!^)[.]" + (removeAllExtensions ? ".*" : "[^.]*$");&lt;/P&gt;&lt;P&gt;    return filename.replaceAll(extPattern, "");&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and call it in your job  &lt;B&gt;removeFileExtension(your file name, true)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;send me love and kudos&lt;/B&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Feb 2022 15:03:45 GMT</pubDate>
    <dc:creator>gjeremy1617088143</dc:creator>
    <dc:date>2022-02-11T15:03:45Z</dc:date>
    <item>
      <title>Get files names and remove extensions</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-files-names-and-remove-extensions/m-p/2378078#M139889</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I'm trying to get the files names from different .txt files, &lt;/P&gt;&lt;P&gt;without the extension (.txt)&lt;/P&gt;, that are in .zip file. But I don't need all files names, just the files names that are in the attachment  "Screenshot_6.png"&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I don't know if I made the correct configuration on tfilelist of the files that I want (&lt;/P&gt;&lt;P&gt;Screenshot_6.png&lt;/P&gt;);&lt;P&gt;2) I need to remove the extension of the files, but I don't know how to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:13:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-files-names-and-remove-extensions/m-p/2378078#M139889</guid>
      <dc:creator>caioaloe_</dc:creator>
      <dc:date>2024-11-15T23:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get files names and remove extensions</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-files-names-and-remove-extensions/m-p/2378079#M139890</link>
      <description>&lt;P&gt;Hi you can write a routine with this function :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;public static String &lt;B&gt;removeFileExtension&lt;/B&gt;(String filename, &lt;B&gt;boolean&lt;/B&gt; removeAllExtensions) {&lt;/P&gt;&lt;P&gt;    if (filename == null || filename.isEmpty()) {&lt;/P&gt;&lt;P&gt;        return filename;&lt;/P&gt;&lt;P&gt;    }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;    &lt;B&gt;String&lt;/B&gt; extPattern = "(?&amp;lt;!^)[.]" + (removeAllExtensions ? ".*" : "[^.]*$");&lt;/P&gt;&lt;P&gt;    return filename.replaceAll(extPattern, "");&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and call it in your job  &lt;B&gt;removeFileExtension(your file name, true)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;send me love and kudos&lt;/B&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 15:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-files-names-and-remove-extensions/m-p/2378079#M139890</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2022-02-11T15:03:45Z</dc:date>
    </item>
  </channel>
</rss>

