<?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 Assistance in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Regex-Assistance/m-p/227992#M29503</link>
    <description>&lt;P&gt;It should be enough to add the semi-colon in that list of characters that shouldn't be matched:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;rxVisitor=([^\-;]*+)&lt;/STRONG&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="victor_balbuena_0-1699448952108.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15230i8EBA342B680F05FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="victor_balbuena_0-1699448952108.png" alt="victor_balbuena_0-1699448952108.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2023 13:09:31 GMT</pubDate>
    <dc:creator>victor_balbuena</dc:creator>
    <dc:date>2023-11-08T13:09:31Z</dc:date>
    <item>
      <title>Regex Assistance</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Regex-Assistance/m-p/227986#M29501</link>
      <description>&lt;P&gt;Calling all regex Gurus!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to target the RxVisitor Value as a request attribute, what would be the best way to capture this? my current string 'rxVisitor=([^\-]*+)' captures data even after the ';' where the targeted value ends.&amp;nbsp;&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="ChadTurner_0-1699446088771.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15228iD969EC5CE2ADBD09/image-size/large?v=v2&amp;amp;px=999" role="button" title="ChadTurner_0-1699446088771.png" alt="ChadTurner_0-1699446088771.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 12:44:17 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Regex-Assistance/m-p/227986#M29501</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2023-11-08T12:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Assistance</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Regex-Assistance/m-p/227992#M29503</link>
      <description>&lt;P&gt;It should be enough to add the semi-colon in that list of characters that shouldn't be matched:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;rxVisitor=([^\-;]*+)&lt;/STRONG&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="victor_balbuena_0-1699448952108.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15230i8EBA342B680F05FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="victor_balbuena_0-1699448952108.png" alt="victor_balbuena_0-1699448952108.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 13:09:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Regex-Assistance/m-p/227992#M29503</guid>
      <dc:creator>victor_balbuena</dc:creator>
      <dc:date>2023-11-08T13:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Assistance</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Regex-Assistance/m-p/227995#M29504</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/14877"&gt;@ChadTurner&lt;/a&gt; , did you tried like this?&lt;BR /&gt;[^(;)]*+&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-08 102705.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15231i8640E788440F10CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-11-08 102705.png" alt="Screenshot 2023-11-08 102705.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 13:27:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Regex-Assistance/m-p/227995#M29504</guid>
      <dc:creator>dannemca</dc:creator>
      <dc:date>2023-11-08T13:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Assistance</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Regex-Assistance/m-p/228005#M29509</link>
      <description>&lt;P&gt;Thanks for your replies &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I did put in a 'between filter' from the start of the string to the end of the string but I also want to take into account of the duplicate values. Trying to formulate as to what that would look like as well from a cookie perspective.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 13:56:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Regex-Assistance/m-p/228005#M29509</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2023-11-08T13:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Assistance</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Regex-Assistance/m-p/228659#M29580</link>
      <description>&lt;P&gt;Hey Regex Gurus,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need some more assistance. so that RxVisitor can occur twice in the cookie payload, but I need to be able to target if 1 or 2 are present. So I was wondering, Could you assist me in building a Regex that looks for the RxVisitor as you did but for the first grouping, then another one that will look at the second grouping.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reason being is that we ran into a roadblock with the counting of cookies etc and it cant actually count the targeted segments in the cookie.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So an example cookie payload would look like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;p_Verizonwt=1; DMFDQ_1jfosdjd768%40gov.Org=1; s_cc=true; sscook=11; &lt;STRONG&gt;rxVisitor=1111&lt;/STRONG&gt;; UserIDValue=haksfuoth57639829fjasfdk37895o3k3rsdf; UserName=Santa.Clause; ; &lt;STRONG&gt;rxVisitor=2222&lt;/STRONG&gt;; HIHTOKEN=abcdefg; GG20=1;&lt;/P&gt;&lt;P&gt;I'm interested in grating two RAs - the first RA will target and extract the cookie value of rxVisitor group 1. Which should result in a RA Key:Value pair of:&lt;BR /&gt;rxVisitor Group 1 = 1111&lt;/P&gt;&lt;P&gt;And then make another RA that looks at the same rxVisitor segment and extracts the data out but on a group 2 qualifier.&amp;nbsp;Which should result in a RA Key:Value pair of:&lt;/P&gt;&lt;P&gt;rxVisitor Group 2 = 2222&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Granted if there is no second qualifier on that cookie payload that is fine, I would then expect that the RA would not qualify. The biggest thing is that we create an RA when a second grouping of a cookie is found.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChadTurner_0-1699969070055.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15515iF93B2EF1D3EC91EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="ChadTurner_0-1699969070055.png" alt="ChadTurner_0-1699969070055.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lastly the reason why we need to create two RAs is because the RA will only allow one capture group.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 13:38:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Regex-Assistance/m-p/228659#M29580</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2023-11-14T13:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Assistance</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Regex-Assistance/m-p/228693#M29587</link>
      <description>&lt;P&gt;I got the Groupings built &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;rxVisitor=(?=1)[^\-;]*+&lt;/P&gt;&lt;P&gt;Basically change the ?=1 to the number of the groups you want to target. 1 gives you the first qualifier, 2 is the second and so on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So now I have two RAs, one looking at the first qualifier, then the second. So I expect the second to always be empty, if it has a value then we have issues. this can also be added at the session level for the apps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChadTurner_0-1699981722229.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15524iD1437AACE6342EAC/image-size/large?v=v2&amp;amp;px=999" role="button" title="ChadTurner_0-1699981722229.png" alt="ChadTurner_0-1699981722229.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 17:08:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Regex-Assistance/m-p/228693#M29587</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2023-11-14T17:08:52Z</dc:date>
    </item>
  </channel>
</rss>

