<?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: Extract id from string using rex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-id-from-string-using-rex/m-p/453263#M128300</link>
    <description>&lt;P&gt;@rockts89 ,&lt;/P&gt;

&lt;P&gt;Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\w+-(?&amp;lt;id&amp;gt;[\d-]+)-\w+
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please provide more samples if you have other patterns &lt;/P&gt;</description>
    <pubDate>Fri, 22 Mar 2019 14:17:51 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2019-03-22T14:17:51Z</dc:date>
    <item>
      <title>Extract id from string using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-id-from-string-using-rex/m-p/453261#M128298</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;

&lt;P&gt;How to extract id from String using rex?&lt;/P&gt;

&lt;P&gt;sample:&lt;/P&gt;

&lt;P&gt;sample-3456-777-text&lt;/P&gt;

&lt;P&gt;result:&lt;/P&gt;

&lt;P&gt;id&lt;BR /&gt;
3456-777&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2019 14:05:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-id-from-string-using-rex/m-p/453261#M128298</guid>
      <dc:creator>rockts89</dc:creator>
      <dc:date>2019-03-22T14:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Extract id from string using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-id-from-string-using-rex/m-p/453262#M128299</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Try like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval text="sample-3456-777-text" 
| rex field=text "-(?P&amp;lt;id&amp;gt;\d+\-\d+)-"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Mar 2019 14:17:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-id-from-string-using-rex/m-p/453262#M128299</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-03-22T14:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Extract id from string using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-id-from-string-using-rex/m-p/453263#M128300</link>
      <description>&lt;P&gt;@rockts89 ,&lt;/P&gt;

&lt;P&gt;Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\w+-(?&amp;lt;id&amp;gt;[\d-]+)-\w+
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please provide more samples if you have other patterns &lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2019 14:17:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-id-from-string-using-rex/m-p/453263#M128300</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-03-22T14:17:51Z</dc:date>
    </item>
  </channel>
</rss>

