<?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: Regular expression for a pattern in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regular-expression-for-a-pattern/m-p/191501#M55144</link>
    <description>&lt;P&gt;This worked for me on RegExr using your sample data.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field=uri_path "(?&amp;lt;custom&amp;gt;(\/verify[\/[\S]*))\/ecatalog"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 06 Jun 2014 19:26:23 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2014-06-06T19:26:23Z</dc:date>
    <item>
      <title>Regular expression for a pattern</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regular-expression-for-a-pattern/m-p/191500#M55143</link>
      <description>&lt;P&gt;Hi we have some uri's as shown below which have 2 words (/verify/abrasives) before /ecatalog and 3 words and 4 words. I want to get the uri's only after /ecatalog&lt;/P&gt;

&lt;P&gt;/verify/abrasives/ecatalog/N-bi1/Ntt-3M+Abrasives&lt;BR /&gt;
/verify/bearings/power-transmission/ecatalog/N-aoj&lt;BR /&gt;
/verify/abrasive-cut-on/power-saws-and-accessories/power-tools/ecatalog/N-caiZ1z0d6at&lt;/P&gt;

&lt;P&gt;i have tried like this but it did not give me proper results. Any suggestions? &lt;/P&gt;

&lt;P&gt;Base search | rex field=uri_path ".*?(?&lt;CUSTOM&gt;[^(?:/ecatalog)]+)"&lt;/CUSTOM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2014 18:48:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regular-expression-for-a-pattern/m-p/191500#M55143</guid>
      <dc:creator>xvxt006</dc:creator>
      <dc:date>2014-06-06T18:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Regular expression for a pattern</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regular-expression-for-a-pattern/m-p/191501#M55144</link>
      <description>&lt;P&gt;This worked for me on RegExr using your sample data.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field=uri_path "(?&amp;lt;custom&amp;gt;(\/verify[\/[\S]*))\/ecatalog"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Jun 2014 19:26:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regular-expression-for-a-pattern/m-p/191501#M55144</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-06-06T19:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Regular expression for a pattern</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regular-expression-for-a-pattern/m-p/191502#M55145</link>
      <description>&lt;P&gt;Thanks. This gives me before /ecatalog. I want the part which is after ecatalog.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2014 19:53:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regular-expression-for-a-pattern/m-p/191502#M55145</guid>
      <dc:creator>xvxt006</dc:creator>
      <dc:date>2014-06-06T19:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Regular expression for a pattern</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regular-expression-for-a-pattern/m-p/191503#M55146</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your base search| rex field=uri "/ecatalog(?&amp;lt;custom&amp;gt;.*)" 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Jun 2014 20:19:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regular-expression-for-a-pattern/m-p/191503#M55146</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-06-06T20:19:21Z</dc:date>
    </item>
  </channel>
</rss>

