<?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: Yet another regex question in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Yet-another-regex-question/m-p/286390#M86719</link>
    <description>&lt;P&gt;Thanks twinspop!!!&lt;/P&gt;</description>
    <pubDate>Sat, 17 Sep 2016 02:55:56 GMT</pubDate>
    <dc:creator>dbcase</dc:creator>
    <dc:date>2016-09-17T02:55:56Z</dc:date>
    <item>
      <title>Yet another regex question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Yet-another-regex-question/m-p/286388#M86717</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have data that looks like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;127.0.0.1 - dancase@icontrol.com [16/Sep/2016:15:34:57.025 +0000] "GET /en-US/splunkd/__raw/services/messages?output_mode=json&amp;amp;sort_key=timeCreated_epochSecs&amp;amp;sort_dir=desc&amp;amp;_=1474040107540 HTTP/1.0" 200 306 "https://icontrol.splunkcloud.com/en-US/app/search/cpe_diagnostics" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36" - a06114bf70eddcfcc771658760d1919d 0ms
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm trying to match on the last segment of the URL&lt;/P&gt;

&lt;P&gt;I have regex that looks like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; rex "en-US/app/(?&amp;lt;app&amp;gt;[^/]+)/(?&amp;lt;dashboard&amp;gt;[^?/\s]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which sort of works....  it picks up the extra " at the end so in this case I get cpe_diagnostics"   when all I want is cpe_diagnostics&lt;/P&gt;

&lt;P&gt;Some of the other events have the same URL but without the trailing " and the regex works for those.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:02:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Yet-another-regex-question/m-p/286388#M86717</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2020-09-29T11:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Yet another regex question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Yet-another-regex-question/m-p/286389#M86718</link>
      <description>&lt;P&gt;Add the double-quote to your exclusion class:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex "en-US/app/(?&amp;lt;app&amp;gt;[^/]+)/(?&amp;lt;dashboard&amp;gt;[^?\s\"]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 17 Sep 2016 02:53:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Yet-another-regex-question/m-p/286389#M86718</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2016-09-17T02:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Yet another regex question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Yet-another-regex-question/m-p/286390#M86719</link>
      <description>&lt;P&gt;Thanks twinspop!!!&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2016 02:55:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Yet-another-regex-question/m-p/286390#M86719</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2016-09-17T02:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Yet another regex question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Yet-another-regex-question/m-p/286391#M86720</link>
      <description>&lt;P&gt;No problemo. Glad I could help. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2016 02:57:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Yet-another-regex-question/m-p/286391#M86720</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2016-09-17T02:57:58Z</dc:date>
    </item>
  </channel>
</rss>

