<?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: How to fetch values from a string using rex command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-values-from-a-string-using-rex-command/m-p/476791#M133825</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval temp="AB101" 
| rex field=temp "(?P&amp;lt;result&amp;gt;[\d]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 08 Nov 2019 05:40:43 GMT</pubDate>
    <dc:creator>vnravikumar</dc:creator>
    <dc:date>2019-11-08T05:40:43Z</dc:date>
    <item>
      <title>How to fetch values from a string using rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-values-from-a-string-using-rex-command/m-p/476788#M133822</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;i have a field with values like AB101, I want to extract 101 separately into a new field&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 07:43:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-values-from-a-string-using-rex-command/m-p/476788#M133822</guid>
      <dc:creator>Puvi</dc:creator>
      <dc:date>2019-11-07T07:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch values from a string using rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-values-from-a-string-using-rex-command/m-p/476789#M133823</link>
      <description>&lt;P&gt;@Puvi,&lt;/P&gt;

&lt;P&gt;Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rex field=field_name "(?&amp;lt;digits&amp;gt;\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;where &lt;CODE&gt;field_name&lt;/CODE&gt; is your field and &lt;CODE&gt;digits&lt;/CODE&gt; is the new field &lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 13:01:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-values-from-a-string-using-rex-command/m-p/476789#M133823</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-11-07T13:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch values from a string using rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-values-from-a-string-using-rex-command/m-p/476790#M133824</link>
      <description>&lt;P&gt;Try this.&lt;BR /&gt;
It will fetch the number followed by digits.&lt;BR /&gt;
| rex field=field_name "&lt;A href="https://community.splunk.com/?Pd+"&gt;A-Z&lt;/A&gt;"&lt;/P&gt;

&lt;P&gt;If you have non-capital words. try the below&lt;/P&gt;

&lt;P&gt;| rex field=field_name "[A-Z]&lt;A href="https://community.splunk.com/?Pd+"&gt;a-z&lt;/A&gt;"&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 13:42:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-values-from-a-string-using-rex-command/m-p/476790#M133824</guid>
      <dc:creator>kartm2020</dc:creator>
      <dc:date>2019-11-07T13:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch values from a string using rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-values-from-a-string-using-rex-command/m-p/476791#M133825</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval temp="AB101" 
| rex field=temp "(?P&amp;lt;result&amp;gt;[\d]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Nov 2019 05:40:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-values-from-a-string-using-rex-command/m-p/476791#M133825</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-11-08T05:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch values from a string using rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-values-from-a-string-using-rex-command/m-p/476792#M133826</link>
      <description>&lt;P&gt;@Puvi , please accept one of the answers which helped you or let's know if you need further help&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2019 12:30:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-values-from-a-string-using-rex-command/m-p/476792#M133826</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-11-10T12:30:44Z</dc:date>
    </item>
  </channel>
</rss>

