<?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 Null result for capture group on request naming regex in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Null-result-for-capture-group-on-request-naming-regex/m-p/194175#M22492</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to generalize the requests one app receives by leveraging request naming rules using regular expressions. Here are some requests to use as sample:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/6941094/offices/3619&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/24325/offices/1123&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/41241/offices/65689/preferences&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/9893810/offices/83721&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/88720/offices/73334/roles&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My goal is to have them all show in Dynatrace as :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/&amp;lt;userid&amp;gt;/offices/&amp;lt;officeid&amp;gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/&amp;lt;userid&amp;gt;/offices/&amp;lt;officeid&amp;gt;/roles&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/&amp;lt;userid&amp;gt;/offices/&amp;lt;officeid&amp;gt;/preferences&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am trying to tackle this using a single global request naming rule using placeholders (using global here because I need to have this done across multiple tenants):&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    "enabled": true,
    "namingPattern": "{before_userid}/&amp;lt;userid&amp;gt;/offices/&amp;lt;officeid&amp;gt;{after_officeid}",
    "managementZones": [],
    "conditions": [
        {
            "attribute": "WEBREQUEST_URL_PATH",
            "comparisonInfo": {
                "type": "STRING",
                "comparison": "REGEX_MATCHES",
                "value": "[\\w\/]{1,100}\/users\/[\\w\/]{1,100}\/offices\/",
                "values": null,
                "negate": false,
                "caseSensitive": false
            }
        }
    ],
    "placeholders": [
        {
            "name": "before_userid",
            "attribute": "WEBREQUEST_URL_PATH",
            "kind": "REGEX_EXTRACTION",
            "delimiterOrRegex": "([\\w\/]{1,100}\/users)\/",
            "endDelimiter": null,
            "requestAttribute": null,
            "normalization": "TO_LOWER_CASE",
            "useFromChildCalls": null,
            "aggregation": null,
            "source": null
        },
        {
            "name": "after_officeid",
            "attribute": "WEBREQUEST_URL_PATH",
            "kind": "REGEX_EXTRACTION",
            "delimiterOrRegex": "\/offices\/\\d{1,10}([^$]*+)",
            "endDelimiter": null,
            "requestAttribute": null,
            "normalization": "TO_LOWER_CASE",
            "useFromChildCalls": null,
            "aggregation": null,
            "source": null
        }
    ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The request naming rule I am using works perfectly for the samples that have something after the office id above, but it does not work for when the request simply ends in the office id number. I get this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/&amp;lt;userid&amp;gt;/offices/&amp;lt;officeid&amp;gt;/offices/3619&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/&amp;lt;userid&amp;gt;/offices/&amp;lt;officeid&amp;gt;/offices/1123&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/&amp;lt;userid&amp;gt;/offices/&amp;lt;officeid&amp;gt;/preferences&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/&amp;lt;userid&amp;gt;/offices/&amp;lt;officeid&amp;gt;/offices/83721&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/&amp;lt;userid&amp;gt;/offices/&amp;lt;officeid&amp;gt;/roles&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For the requests that end up in simply the office id, the regex results for &lt;FONT face="andale mono,times"&gt;after_officeid&lt;/FONT&gt;&amp;nbsp;end up in a null capture group:&lt;/SPAN&gt;&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="gmichels_0-1662732827339.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/7514i9C2EED3BC19512BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gmichels_0-1662732827339.png" alt="gmichels_0-1662732827339.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would assume Dynatrace would use the null result from the capture group as a an empty string placeholder, but I am probably doing it wrong, as it's using the regex result itself in the replacement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone have any clues on having the null result become an empty string, so the replacement works as expected? Apart from creating multiple rules, that is &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 12 Sep 2022 08:40:13 GMT</pubDate>
    <dc:creator>gmichels</dc:creator>
    <dc:date>2022-09-12T08:40:13Z</dc:date>
    <item>
      <title>Null result for capture group on request naming regex</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Null-result-for-capture-group-on-request-naming-regex/m-p/194175#M22492</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to generalize the requests one app receives by leveraging request naming rules using regular expressions. Here are some requests to use as sample:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/6941094/offices/3619&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/24325/offices/1123&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/41241/offices/65689/preferences&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/9893810/offices/83721&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/88720/offices/73334/roles&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My goal is to have them all show in Dynatrace as :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/&amp;lt;userid&amp;gt;/offices/&amp;lt;officeid&amp;gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/&amp;lt;userid&amp;gt;/offices/&amp;lt;officeid&amp;gt;/roles&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/&amp;lt;userid&amp;gt;/offices/&amp;lt;officeid&amp;gt;/preferences&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am trying to tackle this using a single global request naming rule using placeholders (using global here because I need to have this done across multiple tenants):&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    "enabled": true,
    "namingPattern": "{before_userid}/&amp;lt;userid&amp;gt;/offices/&amp;lt;officeid&amp;gt;{after_officeid}",
    "managementZones": [],
    "conditions": [
        {
            "attribute": "WEBREQUEST_URL_PATH",
            "comparisonInfo": {
                "type": "STRING",
                "comparison": "REGEX_MATCHES",
                "value": "[\\w\/]{1,100}\/users\/[\\w\/]{1,100}\/offices\/",
                "values": null,
                "negate": false,
                "caseSensitive": false
            }
        }
    ],
    "placeholders": [
        {
            "name": "before_userid",
            "attribute": "WEBREQUEST_URL_PATH",
            "kind": "REGEX_EXTRACTION",
            "delimiterOrRegex": "([\\w\/]{1,100}\/users)\/",
            "endDelimiter": null,
            "requestAttribute": null,
            "normalization": "TO_LOWER_CASE",
            "useFromChildCalls": null,
            "aggregation": null,
            "source": null
        },
        {
            "name": "after_officeid",
            "attribute": "WEBREQUEST_URL_PATH",
            "kind": "REGEX_EXTRACTION",
            "delimiterOrRegex": "\/offices\/\\d{1,10}([^$]*+)",
            "endDelimiter": null,
            "requestAttribute": null,
            "normalization": "TO_LOWER_CASE",
            "useFromChildCalls": null,
            "aggregation": null,
            "source": null
        }
    ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The request naming rule I am using works perfectly for the samples that have something after the office id above, but it does not work for when the request simply ends in the office id number. I get this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/&amp;lt;userid&amp;gt;/offices/&amp;lt;officeid&amp;gt;/offices/3619&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/&amp;lt;userid&amp;gt;/offices/&amp;lt;officeid&amp;gt;/offices/1123&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/&amp;lt;userid&amp;gt;/offices/&amp;lt;officeid&amp;gt;/preferences&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/&amp;lt;userid&amp;gt;/offices/&amp;lt;officeid&amp;gt;/offices/83721&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/&amp;lt;userid&amp;gt;/offices/&amp;lt;officeid&amp;gt;/roles&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For the requests that end up in simply the office id, the regex results for &lt;FONT face="andale mono,times"&gt;after_officeid&lt;/FONT&gt;&amp;nbsp;end up in a null capture group:&lt;/SPAN&gt;&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="gmichels_0-1662732827339.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/7514i9C2EED3BC19512BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gmichels_0-1662732827339.png" alt="gmichels_0-1662732827339.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would assume Dynatrace would use the null result from the capture group as a an empty string placeholder, but I am probably doing it wrong, as it's using the regex result itself in the replacement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone have any clues on having the null result become an empty string, so the replacement works as expected? Apart from creating multiple rules, that is &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 08:40:13 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Null-result-for-capture-group-on-request-naming-regex/m-p/194175#M22492</guid>
      <dc:creator>gmichels</dc:creator>
      <dc:date>2022-09-12T08:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Null result for capture group on request naming regex</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Null-result-for-capture-group-on-request-naming-regex/m-p/194577#M22546</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/14786"&gt;@gmichels&lt;/a&gt;&amp;nbsp;please have a look at this &lt;A href="https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Global-request-naming-for-REST-services/m-p/176341#M289" target="_self"&gt;TIP POST&lt;/A&gt;&amp;nbsp;which contains the solution for your case.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 18:20:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Null-result-for-capture-group-on-request-naming-regex/m-p/194577#M22546</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2022-09-16T18:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Null result for capture group on request naming regex</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Null-result-for-capture-group-on-request-naming-regex/m-p/196118#M22837</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3364"&gt;@Julius_Loman&lt;/a&gt;&amp;nbsp;, thanks for the tip, it indeed helped me in some cases, but it still doesn't work appropriately when the URL ends solely in an ID. Using this request URL, for example :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/6941094/offices/3619&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;The goal is to generalize both IDs, so it reads:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/[ID]/offices/[ID]&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the regex&amp;nbsp;suggested in the pro tip post, it does not match, as the regex requires something to exist after the 2nd ID:&lt;/P&gt;&lt;PRE&gt;/offices/\d++(/[^/]*+)$&lt;/PRE&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="gmichels_1-1665166226219.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/7936iC5F608F72DB19001/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gmichels_1-1665166226219.png" alt="gmichels_1-1665166226219.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using an adaptation of the regex, so it matches, albeit the capture group output is now null:&lt;/P&gt;&lt;PRE&gt;/offices/\d{1,10}([^$]*+)&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gmichels_2-1665166258793.png" style="width: 774px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/7937i61D72FE0D136371A/image-dimensions/774x151?v=v2" width="774" height="151" role="button" title="gmichels_2-1665166258793.png" alt="gmichels_2-1665166258793.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The end result in Dynatrace:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/[ID]/offices/[ID]/offices/3619&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;This is likely happening because when the capture group output is null, Dynatrace uses the match itself in the replacement. I would expect it to honor the null result and substitute the postfix replacement with an empty string.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Worth noting the rule works fine when there is something after the last number, such as:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;/v3/profiles/users/6941094/offices/3619/roles&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Would you think of this as a bug? I can open a ticket with support and have them look at it.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Full request naming rule, for completeness (in Terraform notion, but it's pretty similar to the API request):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# for requests such as /v2/profiles/users/[ID]/offices/[ID]/roles&lt;BR /&gt;resource "dynatrace_request_naming" "_10_userid_officeid" {&lt;BR /&gt;&amp;nbsp; enabled&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = true&lt;BR /&gt;&amp;nbsp; naming_pattern = "{prefix}[ID]/offices/[ID]{postfix}"&lt;BR /&gt;&amp;nbsp; conditions {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; condition {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attribute = "WEBREQUEST_URL_PATH"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; comparison {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; negate = false&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case_sensitive = false&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; operator&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = "REGEX_MATCHES"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = "/users/[\\w/]{1,100}/offices/"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; placeholders {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; placeholder {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = "prefix"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attribute&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = "WEBREQUEST_URL_PATH"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delimiter_or_regex = "^(.*?/)\\d+"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; kind&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = "REGEX_EXTRACTION"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; normalization&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = "TO_LOWER_CASE"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; placeholder {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = "postfix"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attribute &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;= "WEBREQUEST_URL_PATH"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delimiter_or_regex = "/offices/\\d{1,10}([^$]*+)"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; kind&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = "REGEX_EXTRACTION"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; normalization&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = "TO_LOWER_CASE"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Gustavo&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 18:26:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Null-result-for-capture-group-on-request-naming-regex/m-p/196118#M22837</guid>
      <dc:creator>gmichels</dc:creator>
      <dc:date>2022-10-07T18:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Null result for capture group on request naming regex</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Null-result-for-capture-group-on-request-naming-regex/m-p/196121#M22838</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/14786"&gt;@gmichels&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;just tried that on your URL example (&lt;SPAN&gt;/v3/profiles/users/6941094/offices/3619&lt;BR /&gt;&lt;/SPAN&gt;) and it works for me as expected with my generic rules:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julius_Loman_1-1665171561051.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/7939iF6C66E79F5E8FFFB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julius_Loman_1-1665171561051.png" alt="Julius_Loman_1-1665171561051.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Aren't some rules overriding the global ones in your case?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 19:45:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Null-result-for-capture-group-on-request-naming-regex/m-p/196121#M22838</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2022-10-07T19:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Null result for capture group on request naming regex</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Null-result-for-capture-group-on-request-naming-regex/m-p/196261#M22884</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3364"&gt;@Julius_Loman&lt;/a&gt;,&amp;nbsp;guess I was overthinking this and indeed it works as you highlighted, although it doesn't make much sense to me as the regex doesn't fully match. But I am going to stop complaining :).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The postfix rule needed amending, though, as it doesn't work when there are more sub-paths after the id. For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL class="lia-list-style-type-disc"&gt;&lt;LI&gt;&lt;SPAN&gt;/v2/directory/plans/someplan/offices/548443/vendor-address/search&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Was becoming simply:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;/v2/directory/plans/someplan/offices/[ID]&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Amended postfix regex with:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;\&lt;/SPAN&gt;&lt;SPAN&gt;d++(/[^$]*+)$&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;And it works as expected.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am still going through some edge cases, but in general I have what I need.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks for the help!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Oct 2022 18:22:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Null-result-for-capture-group-on-request-naming-regex/m-p/196261#M22884</guid>
      <dc:creator>gmichels</dc:creator>
      <dc:date>2022-10-11T18:22:27Z</dc:date>
    </item>
  </channel>
</rss>

