<?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 Substring of a placeholder in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Substring-of-a-placeholder/m-p/189486#M21573</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At this moment, Dynatrace is recognizing some variables and they are saved as placeholders to be used at tag rules or request naming rules. However, I would like to know how we can get a part of the value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for example, i have the following variable:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DockerStrippedname=docker/microservice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to get the value of "microservice" as the content of the placeholder to be used in the rule. I don't know if it could be possible to add a expresion into the placeholder definition {ProcessGroup:dockerstrippedname} to get only this part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is it possible?&lt;/P&gt;
&lt;P&gt;thanks,&lt;/P&gt;
&lt;P&gt;Carlos&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jun 2022 12:43:23 GMT</pubDate>
    <dc:creator>carlos_ortega</dc:creator>
    <dc:date>2022-06-29T12:43:23Z</dc:date>
    <item>
      <title>Substring of a placeholder</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Substring-of-a-placeholder/m-p/189486#M21573</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At this moment, Dynatrace is recognizing some variables and they are saved as placeholders to be used at tag rules or request naming rules. However, I would like to know how we can get a part of the value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for example, i have the following variable:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DockerStrippedname=docker/microservice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to get the value of "microservice" as the content of the placeholder to be used in the rule. I don't know if it could be possible to add a expresion into the placeholder definition {ProcessGroup:dockerstrippedname} to get only this part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is it possible?&lt;/P&gt;
&lt;P&gt;thanks,&lt;/P&gt;
&lt;P&gt;Carlos&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 12:43:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Substring-of-a-placeholder/m-p/189486#M21573</guid>
      <dc:creator>carlos_ortega</dc:creator>
      <dc:date>2022-06-29T12:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Substring of a placeholder</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Substring-of-a-placeholder/m-p/189620#M21588</link>
      <description>&lt;P&gt;When using placeholders, if you specify a forward slash (/) before the closing curly-bracket, you can use regex immediately after it. For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your value is&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;DockerStrippedname=docker/microservice&lt;/STRONG&gt; and you want to capture everything after the&amp;nbsp;&lt;STRONG&gt;=&lt;/STRONG&gt;, you would enter your placeholder like:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;{ProcessGroup:dockerstrippedname/^[^=]*=(.*?$)}&amp;nbsp;&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;(I'm not too great at regex so there is probably a better way to do that).&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 15:15:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Substring-of-a-placeholder/m-p/189620#M21588</guid>
      <dc:creator>AlexOsbourn</dc:creator>
      <dc:date>2022-06-30T15:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Substring of a placeholder</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Substring-of-a-placeholder/m-p/189631#M21589</link>
      <description>&lt;P&gt;Try something like, works !&lt;/P&gt;&lt;P&gt;Tag:&lt;/P&gt;&lt;PRE&gt;{&lt;SPAN&gt;ProcessGroup:dockerstrippedname&lt;/SPAN&gt;/^(.*?)_}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Condition:&lt;/P&gt;&lt;PRE&gt;^.*?_&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 16:56:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Substring-of-a-placeholder/m-p/189631#M21589</guid>
      <dc:creator>techean</dc:creator>
      <dc:date>2022-06-30T16:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Substring of a placeholder</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Substring-of-a-placeholder/m-p/189674#M21604</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!, the following expresion gives me the solution:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/.+\/([^\/]*+)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 06:17:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Substring-of-a-placeholder/m-p/189674#M21604</guid>
      <dc:creator>carlos_ortega</dc:creator>
      <dc:date>2022-07-01T06:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Substring of a placeholder</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Substring-of-a-placeholder/m-p/189695#M21611</link>
      <description>&lt;P&gt;Good&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 10:12:13 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Substring-of-a-placeholder/m-p/189695#M21611</guid>
      <dc:creator>techean</dc:creator>
      <dc:date>2022-07-01T10:12:13Z</dc:date>
    </item>
  </channel>
</rss>

