<?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: Customize request naming with regex extraction rule in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Customize-request-naming-with-regex-extraction-rule/m-p/164118#M16376</link>
    <description>&lt;P&gt;Sorry, forgot to add the ^ at the beginning:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;^(.*?\/)[^\/]++\/?$&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Apr 2021 06:34:52 GMT</pubDate>
    <dc:creator>Radu</dc:creator>
    <dc:date>2021-04-12T06:34:52Z</dc:date>
    <item>
      <title>Customize request naming with regex extraction rule</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Customize-request-naming-with-regex-extraction-rule/m-p/163617#M16246</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need to create a global request naming rule which will extract everything before the last / and then append &amp;lt;ID&amp;gt; to the resulting name. Having trouble creating a regex pattern that does not break DT's rules (it's either greedy or too expensive). Could someone help out with this one?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="p-rich_text_section"&gt;Input examples:&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;/URI-A/URI-B/URI-C/URI-D/04w0da444d979e74GSDFGS92f75e0d1e187f9?timestamp=1234
/URI-A/URI-B/URI-C/04w0da444d979e74GSDFGS92f75e0d1e187f9?timestamp=1234&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="p-rich_text_section"&gt;&lt;BR /&gt;Regex Extraction &amp;gt; everything before the last /= {Cleaned-Placeholder}&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/URI-A/URI-B/URI-C/URI-D/
/URI-A/URI-B/URI-C/​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;Request naming rule = {Cleaned-Placeholder}/&amp;lt;ID&amp;gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/URI-A/URI-B/URI-C/URI-D/&amp;lt;ID&amp;gt;
/URI-A/URI-B/URI-C/&amp;lt;ID&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 19:50:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Customize-request-naming-with-regex-extraction-rule/m-p/163617#M16246</guid>
      <dc:creator>diana</dc:creator>
      <dc:date>2021-03-30T19:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Customize request naming with regex extraction rule</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Customize-request-naming-with-regex-extraction-rule/m-p/163630#M16251</link>
      <description>&lt;P&gt;Hope that one of these two options help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1st option:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielS_2-1617151868227.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/465i03FEB899ED723919/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielS_2-1617151868227.png" alt="DanielS_2-1617151868227.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2nd option:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielS_3-1617151892999.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/466iD529D98051679381/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielS_3-1617151892999.png" alt="DanielS_3-1617151892999.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 00:52:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Customize-request-naming-with-regex-extraction-rule/m-p/163630#M16251</guid>
      <dc:creator>DanielS</dc:creator>
      <dc:date>2021-03-31T00:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Customize request naming with regex extraction rule</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Customize-request-naming-with-regex-extraction-rule/m-p/163894#M16300</link>
      <description>&lt;P&gt;Unfortunately, both are invalid options - the second one is greedy and has multiple capture groups which are some of the DT regex restrictions&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/shortlink/regex#restrictions" target="_blank"&gt;https://www.dynatrace.com/support/help/shortlink/regex#restrictions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 19:33:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Customize-request-naming-with-regex-extraction-rule/m-p/163894#M16300</guid>
      <dc:creator>diana</dc:creator>
      <dc:date>2021-04-06T19:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Customize request naming with regex extraction rule</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Customize-request-naming-with-regex-extraction-rule/m-p/163909#M16306</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/7257"&gt;@diana&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(?&amp;gt;.+\/)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Babar&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 03:58:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Customize-request-naming-with-regex-extraction-rule/m-p/163909#M16306</guid>
      <dc:creator>Babar_Qayyum</dc:creator>
      <dc:date>2021-04-07T03:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Customize request naming with regex extraction rule</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Customize-request-naming-with-regex-extraction-rule/m-p/163954#M16322</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="diana_0-1617820120329.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/556iF696B460DC57B1B8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="diana_0-1617820120329.png" alt="diana_0-1617820120329.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/22017"&gt;@Babar_Qayyum&lt;/a&gt;&amp;nbsp;, it doesn't like that one either.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 18:31:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Customize-request-naming-with-regex-extraction-rule/m-p/163954#M16322</guid>
      <dc:creator>diana</dc:creator>
      <dc:date>2021-04-07T18:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Customize request naming with regex extraction rule</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Customize-request-naming-with-regex-extraction-rule/m-p/163967#M16333</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/7257"&gt;@diana&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try the following.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(\DURI\D+\W+)&lt;/LI-CODE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Babar&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 06:59:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Customize-request-naming-with-regex-extraction-rule/m-p/163967#M16333</guid>
      <dc:creator>Babar_Qayyum</dc:creator>
      <dc:date>2021-04-08T06:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Customize request naming with regex extraction rule</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Customize-request-naming-with-regex-extraction-rule/m-p/163978#M16340</link>
      <description>&lt;P&gt;Hi Diana,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this one...&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(.*?\/)[^\/]++\/?$&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will extract everything up to and including the final "/" of the URL, and it will be accepted by Dynatrace regex for request naming rules.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Radu_0-1617868462881.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/558iBD6463B758E6E56F/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Radu_0-1617868462881.png" alt="Radu_0-1617868462881.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Radu&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 07:56:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Customize-request-naming-with-regex-extraction-rule/m-p/163978#M16340</guid>
      <dc:creator>Radu</dc:creator>
      <dc:date>2021-04-08T07:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Customize request naming with regex extraction rule</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Customize-request-naming-with-regex-extraction-rule/m-p/164092#M16366</link>
      <description>&lt;P&gt;Hi Radu,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;That one is also not accepted:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="diana_0-1617982864614.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/582iB36B9FF0FD6689ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="diana_0-1617982864614.png" alt="diana_0-1617982864614.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 15:42:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Customize-request-naming-with-regex-extraction-rule/m-p/164092#M16366</guid>
      <dc:creator>diana</dc:creator>
      <dc:date>2021-04-09T15:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Customize request naming with regex extraction rule</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Customize-request-naming-with-regex-extraction-rule/m-p/164118#M16376</link>
      <description>&lt;P&gt;Sorry, forgot to add the ^ at the beginning:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;^(.*?\/)[^\/]++\/?$&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 06:34:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Customize-request-naming-with-regex-extraction-rule/m-p/164118#M16376</guid>
      <dc:creator>Radu</dc:creator>
      <dc:date>2021-04-12T06:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Customize request naming with regex extraction rule</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Customize-request-naming-with-regex-extraction-rule/m-p/164165#M16388</link>
      <description>&lt;P&gt;Awesome, that works! Thanks Radu&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 17:43:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Customize-request-naming-with-regex-extraction-rule/m-p/164165#M16388</guid>
      <dc:creator>diana</dc:creator>
      <dc:date>2021-04-12T17:43:12Z</dc:date>
    </item>
  </channel>
</rss>

