<?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 Remove first word with rex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Remove-first-word-with-rex/m-p/338660#M100423</link>
    <description>&lt;P&gt;Hey Community,&lt;/P&gt;

&lt;P&gt;I'm trying to remove the first word of a Uri with a rex.&lt;/P&gt;

&lt;P&gt;/test/contentA/contentB.html&lt;/P&gt;

&lt;P&gt;It should only display something like this: &lt;/P&gt;

&lt;P&gt;contentA/contentB.html&lt;/P&gt;

&lt;P&gt;How can I deal with this?&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jun 2017 11:01:34 GMT</pubDate>
    <dc:creator>JohannesGmelin</dc:creator>
    <dc:date>2017-06-07T11:01:34Z</dc:date>
    <item>
      <title>Remove first word with rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-first-word-with-rex/m-p/338660#M100423</link>
      <description>&lt;P&gt;Hey Community,&lt;/P&gt;

&lt;P&gt;I'm trying to remove the first word of a Uri with a rex.&lt;/P&gt;

&lt;P&gt;/test/contentA/contentB.html&lt;/P&gt;

&lt;P&gt;It should only display something like this: &lt;/P&gt;

&lt;P&gt;contentA/contentB.html&lt;/P&gt;

&lt;P&gt;How can I deal with this?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 11:01:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-first-word-with-rex/m-p/338660#M100423</guid>
      <dc:creator>JohannesGmelin</dc:creator>
      <dc:date>2017-06-07T11:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Remove first word with rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-first-word-with-rex/m-p/338661#M100424</link>
      <description>&lt;P&gt;Do it this way -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=field1 "\/\w*\/(?&amp;lt;field1 &amp;gt;.+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Jun 2017 11:10:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-first-word-with-rex/m-p/338661#M100424</guid>
      <dc:creator>dineshraj9</dc:creator>
      <dc:date>2017-06-07T11:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Remove first word with rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-first-word-with-rex/m-p/338662#M100425</link>
      <description>&lt;P&gt;This worked for me: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;s/\/\w*\/(.+)$/\\1/
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks for your thought for thought.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 11:23:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-first-word-with-rex/m-p/338662#M100425</guid>
      <dc:creator>JohannesGmelin</dc:creator>
      <dc:date>2017-06-07T11:23:30Z</dc:date>
    </item>
  </channel>
</rss>

