<?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 Path and Filename from string in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/path-and-filename-from-string/m-p/7117#M3066</link>
    <description>&lt;P&gt;I need to extract and store the File Path and Filename.EXT from a string into 2 variables.&lt;BR /&gt;example:&amp;nbsp; \\Server\folder\folder\filename.ext&lt;/P&gt;&lt;P&gt;I want to end up with:&lt;BR /&gt;Variable1 = "\\Server\folder\folder\"&lt;BR /&gt;Variable2 = filename.ext&lt;/P&gt;&lt;P&gt;Is regex the best way to accomplish this, or is there another built-in method for parsing something like this?&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jul 2024 16:59:01 GMT</pubDate>
    <dc:creator>klandry</dc:creator>
    <dc:date>2024-07-19T16:59:01Z</dc:date>
    <item>
      <title>Path and Filename from string</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/path-and-filename-from-string/m-p/7117#M3066</link>
      <description>&lt;P&gt;I need to extract and store the File Path and Filename.EXT from a string into 2 variables.&lt;BR /&gt;example:&amp;nbsp; \\Server\folder\folder\filename.ext&lt;/P&gt;&lt;P&gt;I want to end up with:&lt;BR /&gt;Variable1 = "\\Server\folder\folder\"&lt;BR /&gt;Variable2 = filename.ext&lt;/P&gt;&lt;P&gt;Is regex the best way to accomplish this, or is there another built-in method for parsing something like this?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 16:59:01 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/path-and-filename-from-string/m-p/7117#M3066</guid>
      <dc:creator>klandry</dc:creator>
      <dc:date>2024-07-19T16:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Path and Filename from string</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/path-and-filename-from-string/m-p/7118#M3067</link>
      <description>&lt;P&gt;Try these:&lt;/P&gt;&lt;P&gt;[path data pill].split('\\').last&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;[path data pill].split("\\")[0..-2].join("\\")&lt;/P&gt;&lt;P&gt;The last one will return "\server\folder\folder", so you could just manually add the another "\" at the start and end.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 17:07:19 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/path-and-filename-from-string/m-p/7118#M3067</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2024-07-19T17:07:19Z</dc:date>
    </item>
  </channel>
</rss>

