<?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 How do I get the last values of a string using the parse command? in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/How-do-I-get-the-last-values-of-a-string-using-the-parse-command/m-p/294913#M3156</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm having trouble understanding the DPL documentation. What I want to do is extract the last characters after a certain character, in this case it would be '/'. I am trying to extract just the filename from the string. For example,&lt;/P&gt;&lt;P&gt;I would just want &lt;STRONG&gt;input.csv&lt;/STRONG&gt; from the following filepath/string:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/NODEA12XY/data/services/svc_rt/module/xxabc/3.4.7/in/input.csv&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Feb 2026 11:47:23 GMT</pubDate>
    <dc:creator>badgerfifteen</dc:creator>
    <dc:date>2026-02-18T11:47:23Z</dc:date>
    <item>
      <title>How do I get the last values of a string using the parse command?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-do-I-get-the-last-values-of-a-string-using-the-parse-command/m-p/294913#M3156</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm having trouble understanding the DPL documentation. What I want to do is extract the last characters after a certain character, in this case it would be '/'. I am trying to extract just the filename from the string. For example,&lt;/P&gt;&lt;P&gt;I would just want &lt;STRONG&gt;input.csv&lt;/STRONG&gt; from the following filepath/string:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/NODEA12XY/data/services/svc_rt/module/xxabc/3.4.7/in/input.csv&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2026 11:47:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-do-I-get-the-last-values-of-a-string-using-the-parse-command/m-p/294913#M3156</guid>
      <dc:creator>badgerfifteen</dc:creator>
      <dc:date>2026-02-18T11:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the last values of a string using the parse command?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-do-I-get-the-last-values-of-a-string-using-the-parse-command/m-p/294917#M3157</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/67521"&gt;@badgerfifteen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can achieve this with the "substring" and "lastindexof" function,&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/platform/grail/dynatrace-query-language/functions/string-functions#substring" target="_blank" rel="noopener"&gt;https://docs.dynatrace.com/docs/platform/grail/dynatrace-query-language/functions/string-functions#substring&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/platform/grail/dynatrace-query-language/functions/string-functions#lastIndexOf" target="_blank"&gt;https://docs.dynatrace.com/docs/platform/grail/dynatrace-query-language/functions/string-functions#lastIndexOf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;data record(content = "/NODEA12XY/data/services/svc_rt/module/xxabc/3.4.7/in/input.csv"),
     record(content = "/NODEA12XY/data/services/input2.csv"),
     record(content = "/NODEA12XY/input3.csv")
| fieldsAdd FileName = substring(content, from:lastIndexOf(content, "/") + 1)&lt;/LI-CODE&gt;&lt;P&gt;Try and let us know.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2026 12:57:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-do-I-get-the-last-values-of-a-string-using-the-parse-command/m-p/294917#M3157</guid>
      <dc:creator>dannemca</dc:creator>
      <dc:date>2026-02-18T12:57:14Z</dc:date>
    </item>
  </channel>
</rss>

