<?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: cleanup Url Regex for session properties in Real User Monitoring</title>
    <link>https://community.dynatrace.com/t5/Real-User-Monitoring/cleanup-Url-Regex-for-session-properties/m-p/188162#M3698</link>
    <description>&lt;P&gt;Try something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;^https?:\/\/w{0,3}\.?(.*)\.[a-zA-Z]{2,63}$&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't tried this in Dynatrace but it certainly works in regular regex. It assumes that all URLs will contain either HTTP or HTTPS and ends in a valid TLD between 2 and 63 characters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jun 2022 15:40:18 GMT</pubDate>
    <dc:creator>AlexOsbourn</dc:creator>
    <dc:date>2022-06-09T15:40:18Z</dc:date>
    <item>
      <title>cleanup Url Regex for session properties</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/cleanup-Url-Regex-for-session-properties/m-p/187878#M3697</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we are trying to configure a clean up rule for many different urls contained in the "Referer" parameter.&lt;/P&gt;&lt;P&gt;At capture time (for user action properties) we can see those and many other values:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.google.it" target="_blank" rel="noopener"&gt;http://www.google.it&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://google.com" target="_blank" rel="noopener"&gt;https://google.com&lt;/A&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;http://yahoo.com&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;https://www.transatlantic.com&amp;nbsp;&lt;/P&gt;&lt;P&gt;ecc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we would like to clean up those values from the ".it", ".com", "&lt;A href="https://www" target="_blank" rel="noopener"&gt;https://www&lt;/A&gt;.", "http://" to transform them in, per example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;google&lt;/P&gt;&lt;P&gt;yahoo&lt;/P&gt;&lt;P&gt;transatlantic&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as of now we have managed to have a partial regex but we are struggling to achieve the desidered result.&lt;BR /&gt;Can somebody help out?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 13:26:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/cleanup-Url-Regex-for-session-properties/m-p/187878#M3697</guid>
      <dc:creator>y_buccellato</dc:creator>
      <dc:date>2022-06-06T13:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: cleanup Url Regex for session properties</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/cleanup-Url-Regex-for-session-properties/m-p/188162#M3698</link>
      <description>&lt;P&gt;Try something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;^https?:\/\/w{0,3}\.?(.*)\.[a-zA-Z]{2,63}$&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't tried this in Dynatrace but it certainly works in regular regex. It assumes that all URLs will contain either HTTP or HTTPS and ends in a valid TLD between 2 and 63 characters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 15:40:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/cleanup-Url-Regex-for-session-properties/m-p/188162#M3698</guid>
      <dc:creator>AlexOsbourn</dc:creator>
      <dc:date>2022-06-09T15:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: cleanup Url Regex for session properties</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/cleanup-Url-Regex-for-session-properties/m-p/188185#M3699</link>
      <description>&lt;P&gt;You're not going to be able to isolate the cleanup rule to just .it and .com because of the lack of lookahead in the regex engine. The following will get you the string between the first and second period:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;\.([^\.]*+)&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 18:25:57 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/cleanup-Url-Regex-for-session-properties/m-p/188185#M3699</guid>
      <dc:creator>mgome</dc:creator>
      <dc:date>2022-06-09T18:25:57Z</dc:date>
    </item>
  </channel>
</rss>

