<?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 syntax for tagging rules in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Regex-syntax-for-tagging-rules/m-p/195076#M22649</link>
    <description>&lt;P&gt;If the name of it starts with App Pool, you could use this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AppPool([^\-]*+)&lt;/P&gt;&lt;P&gt;Basically its looking for AppPool then grabbing what's after it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should give you a result like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChadTurner_0-1664195547608.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/7724iFAFE933DAD0A87E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="ChadTurner_0-1664195547608.png" alt="ChadTurner_0-1664195547608.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Sep 2022 12:32:49 GMT</pubDate>
    <dc:creator>ChadTurner</dc:creator>
    <dc:date>2022-09-26T12:32:49Z</dc:date>
    <item>
      <title>Regex syntax for tagging rules</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Regex-syntax-for-tagging-rules/m-p/195070#M22645</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're trying to adapt the value of an auto-tagging rule.&lt;/P&gt;&lt;P&gt;In order to do so, we'd like to skip the first X characters and then return the remaining part of the string.&lt;/P&gt;&lt;P&gt;(this because Dynatrace does not seem to be able to deal with multiple capturing groups, which was the first attempt)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current code, working via&amp;nbsp;&lt;A href="https://regex101.com/" target="_blank"&gt;regex101: build, test, and debug regex&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;^.{7}\K.+&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;But after all, Dynatrace isn't able to deal with the '\K' part.&lt;/P&gt;&lt;P&gt;Are there any other solutions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, for example: the regex rule applied on&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;AppPoolTaggingRule&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;should return&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;TaggingRule&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Jan&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 11:25:55 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Regex-syntax-for-tagging-rules/m-p/195070#M22645</guid>
      <dc:creator>Jan_VanBelle</dc:creator>
      <dc:date>2022-09-26T11:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Regex syntax for tagging rules</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Regex-syntax-for-tagging-rules/m-p/195072#M22647</link>
      <description>&lt;P&gt;To clarify a little further:&lt;/P&gt;&lt;P&gt;Optional tag value&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;{ProcessGroup:IISAppPool/^(......)(.*)\2\w+}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;results in error&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The placeholder '{ProcessGroup:IISAppPool/^(......)(.*)\2\w+}' is invalid: Regex not allowed - Backreferences are not allowed. Please solve this in another way.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 11:54:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Regex-syntax-for-tagging-rules/m-p/195072#M22647</guid>
      <dc:creator>Jan_VanBelle</dc:creator>
      <dc:date>2022-09-26T11:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Regex syntax for tagging rules</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Regex-syntax-for-tagging-rules/m-p/195076#M22649</link>
      <description>&lt;P&gt;If the name of it starts with App Pool, you could use this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AppPool([^\-]*+)&lt;/P&gt;&lt;P&gt;Basically its looking for AppPool then grabbing what's after it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should give you a result like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChadTurner_0-1664195547608.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/7724iFAFE933DAD0A87E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="ChadTurner_0-1664195547608.png" alt="ChadTurner_0-1664195547608.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 12:32:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Regex-syntax-for-tagging-rules/m-p/195076#M22649</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2022-09-26T12:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Regex syntax for tagging rules</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Regex-syntax-for-tagging-rules/m-p/195081#M22650</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;That seems to work!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you send me the link to the screenshotted page?&lt;BR /&gt;It could've spared me a few hours of searching &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Jan&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 12:47:41 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Regex-syntax-for-tagging-rules/m-p/195081#M22650</guid>
      <dc:creator>Jan_VanBelle</dc:creator>
      <dc:date>2022-09-26T12:47:41Z</dc:date>
    </item>
  </channel>
</rss>

