<?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: Web Request Naming - Placeholder using regex in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Web-Request-Naming-Placeholder-using-regex/m-p/168803#M17710</link>
    <description>&lt;P&gt;What if you add in the * for a value of&amp;nbsp;methodName=([a-zA-Z]*+)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChadTurner_0-1625661399996.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/1500iA12935665375134B/image-size/large?v=v2&amp;amp;px=999" role="button" title="ChadTurner_0-1625661399996.png" alt="ChadTurner_0-1625661399996.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jul 2021 12:36:56 GMT</pubDate>
    <dc:creator>ChadTurner</dc:creator>
    <dc:date>2021-07-07T12:36:56Z</dc:date>
    <item>
      <title>Web Request Naming - Placeholder using regex</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Web-Request-Naming-Placeholder-using-regex/m-p/168794#M17707</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to name web requests using Placeholder. I have two web requests variations that must be named in the same format. How do I achieve this? I tried the regex way but I am not able to make it possessive as lookbacks and lookaheads are not allowed in DT. OR is there a non-regex solution?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Original Web Requests&lt;/P&gt;
&lt;P&gt;1. URL Path is&amp;nbsp;/folder1/ws?serviceName=aBcD&amp;amp;methodName=xYz&lt;/P&gt;
&lt;P&gt;2. URL Path is&amp;nbsp;/folder1/ws?methodName=xYz&amp;amp;serviceName=aBcD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need both of them to be renamed as 'Web Service - xYz'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My solution was this:&lt;/P&gt;
&lt;P&gt;Condition - URL Query contains 'methodName='&lt;/P&gt;
&lt;P&gt;Placeholder - variable called MName, using URL Query, Regex extraction, regex string is&amp;nbsp;&lt;EM&gt;methodName=([a-zA-Z]+)&lt;/EM&gt;. unfortunately this is greedy, so DT does not allow this. I need to 'match' the methodName= string, but it should not be in the result.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I cant use the before/after/between delimiter here since the position of the methodName changes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 10:21:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Web-Request-Naming-Placeholder-using-regex/m-p/168794#M17707</guid>
      <dc:creator>phalgun</dc:creator>
      <dc:date>2022-10-20T10:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Web Request Naming - Placeholder using regex</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Web-Request-Naming-Placeholder-using-regex/m-p/168803#M17710</link>
      <description>&lt;P&gt;What if you add in the * for a value of&amp;nbsp;methodName=([a-zA-Z]*+)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChadTurner_0-1625661399996.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/1500iA12935665375134B/image-size/large?v=v2&amp;amp;px=999" role="button" title="ChadTurner_0-1625661399996.png" alt="ChadTurner_0-1625661399996.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 12:36:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Web-Request-Naming-Placeholder-using-regex/m-p/168803#M17710</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2021-07-07T12:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Web Request Naming - Placeholder using regex</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Web-Request-Naming-Placeholder-using-regex/m-p/168810#M17712</link>
      <description>&lt;P&gt;Nice! that works! I was under the impression that both . and * are greedy and hence not allowed by DT. glad that * works.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 14:11:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Web-Request-Naming-Placeholder-using-regex/m-p/168810#M17712</guid>
      <dc:creator>phalgun</dc:creator>
      <dc:date>2021-07-07T14:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Web Request Naming - Placeholder using regex</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Web-Request-Naming-Placeholder-using-regex/m-p/168811#M17713</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/10059"&gt;@phalgun&lt;/a&gt;&amp;nbsp;I ran into the same issue with greedy quantifiers as well and kept looking and looking for a solution around the "+" I was extremely happy when I found that we could add the "*" to the + in order to negate the greedy classification&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://community.dynatrace.com/html/@C05EE4F42B21E33B69BD3C641CD041DB/images/emoticons/dancing_blob.gif" alt=":dancing_blob:" title=":dancing_blob:" /&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://community.dynatrace.com/html/@768F9173EAF6B97F941B7D5561B06437/images/emoticons/party_blob.gif" alt=":party_blob:" title=":party_blob:" /&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://community.dynatrace.com/html/@F3855C00763C1B6CC61ECF7207C6A6C9/images/emoticons/party_cat.gif" alt=":party_cat:" title=":party_cat:" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 14:15:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Web-Request-Naming-Placeholder-using-regex/m-p/168811#M17713</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2021-07-07T14:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Web Request Naming - Placeholder using regex</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Web-Request-Naming-Placeholder-using-regex/m-p/168813#M17714</link>
      <description>&lt;P&gt;Thanks Chad! That worked for me too&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://community.dynatrace.com/html/@E3FB4CE7F5976A0207CC64B763EA2C89/images/emoticons/dancing_penguin.gif" alt=":dancing_penguin:" title=":dancing_penguin:" /&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 14:23:05 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Web-Request-Naming-Placeholder-using-regex/m-p/168813#M17714</guid>
      <dc:creator>AbAmani</dc:creator>
      <dc:date>2021-07-07T14:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Web Request Naming - Placeholder using regex</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Web-Request-Naming-Placeholder-using-regex/m-p/168815#M17715</link>
      <description>&lt;P&gt;You might want to try lookaround matches like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(?&amp;lt;=methodName=)[aA-zZ]*(?=\&amp;amp;)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 07 Jul 2021 14:50:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Web-Request-Naming-Placeholder-using-regex/m-p/168815#M17715</guid>
      <dc:creator>r_weber</dc:creator>
      <dc:date>2021-07-07T14:50:38Z</dc:date>
    </item>
  </channel>
</rss>

