<?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 to find if there are two ? symbols in the url in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-that-gives-the-count-if-the-url-string-has/m-p/591704#M205974</link>
    <description>&lt;LI-CODE lang="markup"&gt;| regex url="\?[^\?]+\?"&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 31 Mar 2022 07:23:33 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-03-31T07:23:33Z</dc:date>
    <item>
      <title>How to create a regex that gives the count, if the url string has two question mark symbols (not consecutive though)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-that-gives-the-count-if-the-url-string-has/m-p/591695#M205973</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an issue with the search string, I have a url text like below and I need to filter that out using regex. I am not able to create a regex that would give the count if the url string has two question mark symbols, not consecutive though.&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;/shop/us/aabc-abc-aaa&lt;/SPAN&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;SPAN class=""&gt;filtered=true&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;rows=240&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;start=0&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;facet=ads_f42001_ntk_cs:&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;%22aaa-Babbab%22&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;amp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;cmp=DIS:SPR22:HCo:M:US:PSP:TT:X:X:X:JEANS:X:JEAN:X:JanWk4AABBBs15s&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 16:49:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-that-gives-the-count-if-the-url-string-has/m-p/591695#M205973</guid>
      <dc:creator>sanvica</dc:creator>
      <dc:date>2022-03-31T16:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to find if there are two ? symbols in the url</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-that-gives-the-count-if-the-url-string-has/m-p/591704#M205974</link>
      <description>&lt;LI-CODE lang="markup"&gt;| regex url="\?[^\?]+\?"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 31 Mar 2022 07:23:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-that-gives-the-count-if-the-url-string-has/m-p/591704#M205974</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-03-31T07:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to find if there are two ? symbols in the url</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-that-gives-the-count-if-the-url-string-has/m-p/591801#M205989</link>
      <description>&lt;P&gt;To count how many occurrences, use&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/MultivalueEvalFunctions#mvcount.28MVFIELD.29" target="_blank" rel="noopener"&gt;mvcount&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=url max_match=0 "\?(?&amp;lt;param&amp;gt;[^?]+)"
| eval qcount = mvcount(param)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;e.g.,&amp;nbsp;url="/shop/us/aabc-abc-aaa?filtered=true&amp;amp;rows=240&amp;amp;start=0&amp;amp;facet=ads_f42001_ntk_cs:(%22aaa-Babbab%22)&amp;amp;cmp=DIS:SPR22:HCo:M:US:PSP:TT:X:X:X:JEANS:X:JEAN:X:JanWk4AABBBs15s" gives&lt;/P&gt;&lt;TABLE width="1174px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="675.640625px"&gt;param&lt;/TD&gt;&lt;TD width="40px"&gt;qcount&lt;/TD&gt;&lt;TD width="458.171875px"&gt;url&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="675.640625px"&gt;filtered=true&amp;amp;rows=240&amp;amp;start=0&amp;amp;facet=ads_f42001_ntk_cs:(%22aaa-Babbab%22)&amp;amp;cmp=DIS:SPR22:HCo:M:US:PSP:TT:X:X:X:JEANS:X:JEAN:X:JanWk4AABBBs15s&lt;/TD&gt;&lt;TD width="40px"&gt;1&lt;/TD&gt;&lt;TD width="458.171875px"&gt;/shop/us/aabc-abc-aaa?filtered=true&amp;amp;rows=240&amp;amp;start=0&amp;amp;facet=ads_f42001_ntk_cs:(%22aaa-Babbab%22)&amp;amp;cmp=DIS:SPR22:HCo:M:US:PSP:TT:X:X:X:JEANS:X:JEAN:X:JanWk4AABBBs15s&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;whereas url="/shop/us/aabc-abc-aaa?filtered=true&amp;amp;rows=240&amp;amp;start=0&amp;amp;facet=ads_f42001_ntk_cs:(%22aaa-Babbab%22)?cmp=DIS:SPR22:HCo:M:US:PSP:TT:X:X:X&lt;span class="lia-unicode-emoji" title=":jeans:"&gt;👖&lt;/span&gt;X:JEAN:X:JanWk4AABBBs15s" gives&lt;/P&gt;&lt;TABLE width="1069px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="570.5625px"&gt;&lt;DIV class=""&gt;param&lt;/DIV&gt;&lt;/TD&gt;&lt;TD width="40px"&gt;qcount&lt;/TD&gt;&lt;TD width="458.171875px"&gt;url&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="570.5625px"&gt;&lt;DIV class=""&gt;filtered=true&amp;amp;rows=240&amp;amp;start=0&amp;amp;facet=ads_f42001_ntk_cs:(%22aaa-Babbab%22)&lt;/DIV&gt;&lt;DIV class=""&gt;cmp=DIS:SPR22:HCo:M:US:PSP:TT:X:X:X:JEANS:X:JEAN:X:JanWk4AABBBs15s&lt;/DIV&gt;&lt;/TD&gt;&lt;TD width="40px"&gt;2&lt;/TD&gt;&lt;TD width="458.171875px"&gt;/shop/us/aabc-abc-aaa?filtered=true&amp;amp;rows=240&amp;amp;start=0&amp;amp;facet=ads_f42001_ntk_cs:(%22aaa-Babbab%22)?cmp=DIS:SPR22:HCo:M:US:PSP:TT:X:X:X:JEANS:X:JEAN:X:JanWk4AABBBs15s&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 31 Mar 2022 15:05:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-regex-that-gives-the-count-if-the-url-string-has/m-p/591801#M205989</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-03-31T15:05:55Z</dc:date>
    </item>
  </channel>
</rss>

