<?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 Extracting a filename from a location string in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Extracting-a-filename-from-a-location-string/m-p/452091#M168715</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you advise on the best method to extract information from a string? I'm looking to get the information of the filename, but the string comes through with the folder location aswell as the filename (and filetype). Ideally, the only piece of information I want is the filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below shows some example data, as you can see the number of folders may change as does the length of the string and the fileattachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Temp\Folder1\Outbound\filename1.xml&lt;/P&gt;&lt;P&gt;C:\Temp\Folder2\Outbound\filename_test1.xml&lt;/P&gt;&lt;P&gt;C:\Temp\Folder1\Inbound\filename_test2.txt&lt;/P&gt;&lt;P&gt;C:\Temp\Folder3\Outbound\filename2.xlsx&lt;/P&gt;&lt;P&gt;C:\Temp\Folder1\Outbound_Test1\data1.doc&lt;/P&gt;&lt;P&gt;C:\Temp\Folder2\Outbound_Test2\filename11.docx&lt;/P&gt;&lt;P&gt;C:\Temp\Folder2\Dev\Outbound\filename12.xml&lt;/P&gt;&lt;P&gt;C:\Temp\Folder4\Live\Inbound\filename31.xml&lt;/P&gt;&lt;P&gt;C:\Temp\Folder4\Dev\2601\Outbound\Customer1\filename41.xml&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for "C:\Temp\Folder4\Dev\2601\Outbound\Customer1\filename41.xml" I would like the result of "filename41".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help you could provide would be great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Dayna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Sep 2012 11:03:16 GMT</pubDate>
    <dc:creator>Dayna</dc:creator>
    <dc:date>2012-09-28T11:03:16Z</dc:date>
    <item>
      <title>Extracting a filename from a location string</title>
      <link>https://community.qlik.com/t5/QlikView/Extracting-a-filename-from-a-location-string/m-p/452091#M168715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you advise on the best method to extract information from a string? I'm looking to get the information of the filename, but the string comes through with the folder location aswell as the filename (and filetype). Ideally, the only piece of information I want is the filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below shows some example data, as you can see the number of folders may change as does the length of the string and the fileattachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Temp\Folder1\Outbound\filename1.xml&lt;/P&gt;&lt;P&gt;C:\Temp\Folder2\Outbound\filename_test1.xml&lt;/P&gt;&lt;P&gt;C:\Temp\Folder1\Inbound\filename_test2.txt&lt;/P&gt;&lt;P&gt;C:\Temp\Folder3\Outbound\filename2.xlsx&lt;/P&gt;&lt;P&gt;C:\Temp\Folder1\Outbound_Test1\data1.doc&lt;/P&gt;&lt;P&gt;C:\Temp\Folder2\Outbound_Test2\filename11.docx&lt;/P&gt;&lt;P&gt;C:\Temp\Folder2\Dev\Outbound\filename12.xml&lt;/P&gt;&lt;P&gt;C:\Temp\Folder4\Live\Inbound\filename31.xml&lt;/P&gt;&lt;P&gt;C:\Temp\Folder4\Dev\2601\Outbound\Customer1\filename41.xml&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for "C:\Temp\Folder4\Dev\2601\Outbound\Customer1\filename41.xml" I would like the result of "filename41".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help you could provide would be great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Dayna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 11:03:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extracting-a-filename-from-a-location-string/m-p/452091#M168715</guid>
      <dc:creator>Dayna</dc:creator>
      <dc:date>2012-09-28T11:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting a filename from a location string</title>
      <link>https://community.qlik.com/t5/QlikView/Extracting-a-filename-from-a-location-string/m-p/452092#M168716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Hi Dayna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Another option:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive-pre" style="font-size: 12px; margin: 10px 20px; padding-left: 10px; color: #636363;"&gt;&lt;CODE class="jive-code"&gt;Mid( 'C:\Temp\Folder4\Dev\2601\Outbound\Customer1\filename41.xml' , Index('C:\Temp\Folder4\Dev\2601\Outbound\Customer1\filename41.xml', '\', -1) +1) , '.', 1) &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 11:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extracting-a-filename-from-a-location-string/m-p/452092#M168716</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-09-28T11:20:26Z</dc:date>
    </item>
  </channel>
</rss>

