<?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: regex in Dynatrace to grab last item from /item1/item2/last_item in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/regex-in-Dynatrace-to-grab-last-item-from-item1-item2-last-item/m-p/191113#M21882</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi Julius,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(you missed an escape so&amp;nbsp; change to ([^\/]*+)$&amp;nbsp; &amp;nbsp;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Dynatrace says to expensive!"&amp;nbsp; but after a lot of tries it seems that the solution is super simple,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (when you see it (-;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[a-z,A-Z]+$ (or a variation of course)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;KR Henk&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;KR Henk&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jul 2022 14:11:58 GMT</pubDate>
    <dc:creator>henk_stobbe</dc:creator>
    <dc:date>2022-07-21T14:11:58Z</dc:date>
    <item>
      <title>regex in Dynatrace to grab last item from /item1/item2/last_item</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/regex-in-Dynatrace-to-grab-last-item-from-item1-item2-last-item/m-p/191087#M21877</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without getting greedy (-; who knows how to solve below,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/item1/item2/last_item&amp;nbsp; should transform to last_item&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Who can solve this, non greedy (and yes I know it is a lame joke)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;KR Henk&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 13:38:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/regex-in-Dynatrace-to-grab-last-item-from-item1-item2-last-item/m-p/191087#M21877</guid>
      <dc:creator>henk_stobbe</dc:creator>
      <dc:date>2022-07-21T13:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: regex in Dynatrace to grab last item from /item1/item2/last_item</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/regex-in-Dynatrace-to-grab-last-item-from-item1-item2-last-item/m-p/191100#M21879</link>
      <description>&lt;P&gt;The following should work, does it?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/([^/]*+)$&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 13:06:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/regex-in-Dynatrace-to-grab-last-item-from-item1-item2-last-item/m-p/191100#M21879</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2022-07-21T13:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: regex in Dynatrace to grab last item from /item1/item2/last_item</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/regex-in-Dynatrace-to-grab-last-item-from-item1-item2-last-item/m-p/191113#M21882</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Julius,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(you missed an escape so&amp;nbsp; change to ([^\/]*+)$&amp;nbsp; &amp;nbsp;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Dynatrace says to expensive!"&amp;nbsp; but after a lot of tries it seems that the solution is super simple,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (when you see it (-;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[a-z,A-Z]+$ (or a variation of course)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;KR Henk&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;KR Henk&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 14:11:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/regex-in-Dynatrace-to-grab-last-item-from-item1-item2-last-item/m-p/191113#M21882</guid>
      <dc:creator>henk_stobbe</dc:creator>
      <dc:date>2022-07-21T14:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: regex in Dynatrace to grab last item from /item1/item2/last_item</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/regex-in-Dynatrace-to-grab-last-item-from-item1-item2-last-item/m-p/191124#M21883</link>
      <description>&lt;P&gt;No, my regex ix fine I think. You need to specify the head / as without it it's expensive. Also it depends on where within Dynatrace you are using it.&lt;BR /&gt;It works for the request naming rules (using the aaa placeholder):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julius_Loman_0-1658417403400.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/6706iA85D1E5B031D9EDF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julius_Loman_0-1658417403400.png" alt="Julius_Loman_0-1658417403400.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;RUM has different regex limits, so it's better to ask where you need it exactly.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 15:32:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/regex-in-Dynatrace-to-grab-last-item-from-item1-item2-last-item/m-p/191124#M21883</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2022-07-21T15:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: regex in Dynatrace to grab last item from /item1/item2/last_item</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/regex-in-Dynatrace-to-grab-last-item-from-item1-item2-last-item/m-p/191148#M21892</link>
      <description>&lt;P&gt;Hello Julius,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Customer was using regex in calculated metric, so you are right yours works perfect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(except in calculated metric than mine is better (-;)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="henk_stobbe_0-1658835498777.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/6779i2A46E384BA895E26/image-size/medium?v=v2&amp;amp;px=400" role="button" title="henk_stobbe_0-1658835498777.png" alt="henk_stobbe_0-1658835498777.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And yes I know that is very deep (-;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank for your reaction!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KR Henk&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 11:38:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/regex-in-Dynatrace-to-grab-last-item-from-item1-item2-last-item/m-p/191148#M21892</guid>
      <dc:creator>henk_stobbe</dc:creator>
      <dc:date>2022-07-26T11:38:52Z</dc:date>
    </item>
  </channel>
</rss>

