<?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 question in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-question/m-p/116998#M31143</link>
    <description>&lt;P&gt;i think when i add backslash it is somehow skipping that in the portal. So there is backslash next to w&lt;/P&gt;</description>
    <pubDate>Mon, 28 Oct 2013 00:25:54 GMT</pubDate>
    <dc:creator>xvxt006</dc:creator>
    <dc:date>2013-10-28T00:25:54Z</dc:date>
    <item>
      <title>Regex question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-question/m-p/116996#M31141</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;we have 2 uri patterns as shown below&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;/search?searchQuery=4gmw4&lt;/CODE&gt; (the end part is always single word which is alpha numeric)&lt;BR /&gt;
&lt;CODE&gt;/search?searchQuery=Snatch+Blocks++%281%2F2+to+2+ton%29&lt;/CODE&gt; (in this end part can have spaces, multiple words, etc). &lt;/P&gt;

&lt;P&gt;for the first one i tried this and did not work. &lt;BR /&gt;
| regex uri="(?=/search\?searchQuery=\w+$)" &lt;/P&gt;

&lt;P&gt;2nd one no clue. Any suggestions would help. &lt;/P&gt;</description>
      <pubDate>Sun, 27 Oct 2013 21:29:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-question/m-p/116996#M31141</guid>
      <dc:creator>xvxt006</dc:creator>
      <dc:date>2013-10-27T21:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Regex question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-question/m-p/116997#M31142</link>
      <description>&lt;P&gt;Actually the below expression did work out for me for the first uri pattern. &lt;BR /&gt;
| regex (uri="searchQuery=\w{5}" i want to get only 2nd pattern but not the 1st one..&lt;/P&gt;

&lt;P&gt;so i tried this but giving me syntax error.  Can someone help with this?&lt;/P&gt;

&lt;P&gt;regex (uri="searchQuery=\w+"  AND regex (uri!="searchQuery=\w{5}")&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2013 00:24:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-question/m-p/116997#M31142</guid>
      <dc:creator>xvxt006</dc:creator>
      <dc:date>2013-10-28T00:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Regex question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-question/m-p/116998#M31143</link>
      <description>&lt;P&gt;i think when i add backslash it is somehow skipping that in the portal. So there is backslash next to w&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2013 00:25:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-question/m-p/116998#M31143</guid>
      <dc:creator>xvxt006</dc:creator>
      <dc:date>2013-10-28T00:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Regex question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-question/m-p/116999#M31144</link>
      <description>&lt;P&gt;You can try using a regex that captures anything that follows the equal sign, that is not an equal sign. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| regex uri="(searchQuery=[^=]*$)"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2013 00:50:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-question/m-p/116999#M31144</guid>
      <dc:creator>_d_</dc:creator>
      <dc:date>2013-10-28T00:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Regex question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-question/m-p/117000#M31145</link>
      <description>&lt;P&gt;adding to above answer:&lt;/P&gt;

&lt;P&gt;If you want to capture the 2 uri patterns separately, then use&lt;/P&gt;

&lt;P&gt;| regex uri="(searchQuery=[^+=]&lt;EM&gt;$)"&lt;BR /&gt;
and&lt;BR /&gt;
| regex uri="(searchQuery=[^=]+[^=]&lt;/EM&gt;$)"&lt;/P&gt;

&lt;P&gt;assuming '+' does not appears in first uri type and is always present in 2nd uri type.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2013 04:56:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-question/m-p/117000#M31145</guid>
      <dc:creator>amarsaroj</dc:creator>
      <dc:date>2013-10-28T04:56:29Z</dc:date>
    </item>
  </channel>
</rss>

