<?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 for Hostname in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Regex-for-Hostname/m-p/286789#M37659</link>
    <description>&lt;P&gt;you can try this one,&amp;nbsp;{Host:DetectedName/^AB[C0-9]([^.]*+).*$/$1/}&lt;/P&gt;</description>
    <pubDate>Thu, 25 Sep 2025 05:59:19 GMT</pubDate>
    <dc:creator>Mohamed_Hamdy</dc:creator>
    <dc:date>2025-09-25T05:59:19Z</dc:date>
    <item>
      <title>Regex for Hostname</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Regex-for-Hostname/m-p/286773#M37658</link>
      <description>&lt;P&gt;I've been working on updating our automatic tag rules for a current project and would like to use Regex to capture a device type from a dns name, i.e. ABCCORE01.TEST.COM.&amp;nbsp; The ABC prefix is the location of the device, and&amp;nbsp;&lt;STRONG&gt;CORE&lt;/STRONG&gt; is the device type.&amp;nbsp; I would like to only use the device type as an optional tag value, such as "Device Capability: &amp;lt;value&amp;gt;".&amp;nbsp; I'm sure this is nothing new.&lt;/P&gt;&lt;P&gt;This worked in regex101, but not in DT...&lt;/P&gt;&lt;P&gt;^[a-zA-Z0-9]{0,3}([a-zA-Z]+?)\d&lt;/P&gt;&lt;P&gt;The location prefix can be ABC or AB1.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 20:02:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Regex-for-Hostname/m-p/286773#M37658</guid>
      <dc:creator>bill_scheuernst</dc:creator>
      <dc:date>2025-09-24T20:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for Hostname</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Regex-for-Hostname/m-p/286789#M37659</link>
      <description>&lt;P&gt;you can try this one,&amp;nbsp;{Host:DetectedName/^AB[C0-9]([^.]*+).*$/$1/}&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2025 05:59:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Regex-for-Hostname/m-p/286789#M37659</guid>
      <dc:creator>Mohamed_Hamdy</dc:creator>
      <dc:date>2025-09-25T05:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for Hostname</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Regex-for-Hostname/m-p/286797#M37661</link>
      <description>&lt;P&gt;Please check&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/shortlink/regex" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/regex&lt;/A&gt;&lt;/P&gt;&lt;P&gt;From my experience: pick the ungreedy option to test in regex101&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PacoPorro_0-1758787049216.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/30246iB150AADE2BD0DC6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PacoPorro_0-1758787049216.png" alt="PacoPorro_0-1758787049216.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;with ^[A-Za-z0-9]{3}([A-Za-z]+?)\d+\.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PacoPorro_1-1758787191067.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/30247iF308D514457B047F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PacoPorro_1-1758787191067.png" alt="PacoPorro_1-1758787191067.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2025 08:00:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Regex-for-Hostname/m-p/286797#M37661</guid>
      <dc:creator>PacoPorro</dc:creator>
      <dc:date>2025-09-25T08:00:08Z</dc:date>
    </item>
  </channel>
</rss>

