<?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 How do I edit my regular expression to search for a question mark in a string? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-regular-expression-to-search-for-a-question/m-p/236158#M70142</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm having a dickens of a time trying to figure out how to use a question mark as the termination of a search for regex.  My data looks like this  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;####     &amp;lt;[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)'&amp;gt; &amp;lt;&amp;gt; &amp;lt;&amp;gt; &amp;lt;&amp;gt; &amp;lt;1470912327355&amp;gt;  &amp;lt;[STUCK] ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "662" seconds working on the request "Workmanager: mediaUpload-workManager, Version: 0, Scheduled=true, Started=true, Started time: 662872 ms
[
POST /cameraProxy/video?token=MTE0NTg5OjExNDU4OS4xNDcwMzgzNzc1OjExNDU4OS4zOjExNDU4OV83ODAzNDM2NTE3X3ZfMTM2NF80MjM4MjUwOTo2MDAyNTM= HTTP/1.1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And I'm trying to match on the &lt;CODE&gt;?&lt;/CODE&gt; just at the end of the /cameraProxy/video URL.  My umpteenth try at the regex looks like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;GET\s|POST\s+(?&amp;lt;status&amp;gt;\/\w+\/\w+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which works, but if the URL is digits instead of a word, it wouldn't match.  Ideally I'd like to search for the GET / POST, then the space, then match everything up to the &lt;CODE&gt;?&lt;/CODE&gt; mark.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Aug 2016 17:25:05 GMT</pubDate>
    <dc:creator>dbcase</dc:creator>
    <dc:date>2016-08-23T17:25:05Z</dc:date>
    <item>
      <title>How do I edit my regular expression to search for a question mark in a string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-regular-expression-to-search-for-a-question/m-p/236158#M70142</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm having a dickens of a time trying to figure out how to use a question mark as the termination of a search for regex.  My data looks like this  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;####     &amp;lt;[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)'&amp;gt; &amp;lt;&amp;gt; &amp;lt;&amp;gt; &amp;lt;&amp;gt; &amp;lt;1470912327355&amp;gt;  &amp;lt;[STUCK] ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "662" seconds working on the request "Workmanager: mediaUpload-workManager, Version: 0, Scheduled=true, Started=true, Started time: 662872 ms
[
POST /cameraProxy/video?token=MTE0NTg5OjExNDU4OS4xNDcwMzgzNzc1OjExNDU4OS4zOjExNDU4OV83ODAzNDM2NTE3X3ZfMTM2NF80MjM4MjUwOTo2MDAyNTM= HTTP/1.1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And I'm trying to match on the &lt;CODE&gt;?&lt;/CODE&gt; just at the end of the /cameraProxy/video URL.  My umpteenth try at the regex looks like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;GET\s|POST\s+(?&amp;lt;status&amp;gt;\/\w+\/\w+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which works, but if the URL is digits instead of a word, it wouldn't match.  Ideally I'd like to search for the GET / POST, then the space, then match everything up to the &lt;CODE&gt;?&lt;/CODE&gt; mark.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 17:25:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-regular-expression-to-search-for-a-question/m-p/236158#M70142</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2016-08-23T17:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my regular expression to search for a question mark in a string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-regular-expression-to-search-for-a-question/m-p/236159#M70143</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; GET\s|POST\s+(?&amp;lt;status&amp;gt;\/[^\?]+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Aug 2016 17:39:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-regular-expression-to-search-for-a-question/m-p/236159#M70143</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-23T17:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my regular expression to search for a question mark in a string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-regular-expression-to-search-for-a-question/m-p/236160#M70144</link>
      <description>&lt;P&gt;One day my goal is to be as smart as you Sundareshr!  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 17:41:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-regular-expression-to-search-for-a-question/m-p/236160#M70144</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2016-08-23T17:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my regular expression to search for a question mark in a string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-regular-expression-to-search-for-a-question/m-p/236161#M70145</link>
      <description>&lt;P&gt;Your goal is very near, my friend &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 17:42:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-regular-expression-to-search-for-a-question/m-p/236161#M70145</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-23T17:42:06Z</dc:date>
    </item>
  </channel>
</rss>

