<?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 extract value with in brackets in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-value-with-in-brackets/m-p/134802#M184709</link>
    <description>&lt;P&gt;Hi kavyatim,&lt;/P&gt;

&lt;P&gt;something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;YourFancySearch | rex "\((?&amp;lt;myField&amp;gt;.*)\)" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;should work fine for you.&lt;BR /&gt;
Here is a &lt;A href="http://www.regexr.com/"&gt;link&lt;/A&gt; to a page were you can test regex on your data.&lt;/P&gt;

&lt;P&gt;hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
    <pubDate>Mon, 03 Feb 2014 12:17:18 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2014-02-03T12:17:18Z</dc:date>
    <item>
      <title>How to extract value with in brackets</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-value-with-in-brackets/m-p/134801#M184708</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;
I have data in the following format:&lt;BR /&gt;
NOT_HOMOLOGATED-(UNKNOWN)&lt;BR /&gt;
HOMOLOGATED-(Thomson SpeedTouch ST510 V6 versao 6.2.15.7 or ST585 v6)&lt;BR /&gt;
NOT_HOMOLOGATED-(UNKNOWN)&lt;BR /&gt;
HOMOLOGATED-(ZTE ZXDSL 831 II V7.5.02_E09_BR1)&lt;BR /&gt;
NOT_HOMOLOGATED-(UNKNOWN)&lt;BR /&gt;
NOT_HOMOLOGATED-(UNKNOWN)&lt;BR /&gt;
HOMOLOGATED-(ZTE ZXDSL 831 II V7.5.02_E09_BR1)&lt;BR /&gt;
HOMOLOGATED-(Thomson SpeedTouch ST510 V6 versao 6.2.15.7 or ST585 v6)&lt;BR /&gt;
I would like to extract value with in the brackets i.e extracted values should be:&lt;BR /&gt;
UNKNOWN&lt;BR /&gt;
Thomson SpeedTouch ST510 V6 versao 6.2.15.7 or ST585 v6&lt;BR /&gt;
UNKNOWN&lt;BR /&gt;
ZTE ZXDSL 831 II V7.5.02_E09_BR1 &lt;BR /&gt;
and so on . . . . . &lt;/P&gt;

&lt;P&gt;Can any one help me out in writing regex for this  as it is not flexible with substring?&lt;/P&gt;

&lt;P&gt;Thanking you in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:47:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-value-with-in-brackets/m-p/134801#M184708</guid>
      <dc:creator>kavyatim</dc:creator>
      <dc:date>2020-09-28T15:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract value with in brackets</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-value-with-in-brackets/m-p/134802#M184709</link>
      <description>&lt;P&gt;Hi kavyatim,&lt;/P&gt;

&lt;P&gt;something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;YourFancySearch | rex "\((?&amp;lt;myField&amp;gt;.*)\)" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;should work fine for you.&lt;BR /&gt;
Here is a &lt;A href="http://www.regexr.com/"&gt;link&lt;/A&gt; to a page were you can test regex on your data.&lt;/P&gt;

&lt;P&gt;hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2014 12:17:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-value-with-in-brackets/m-p/134802#M184709</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-02-03T12:17:18Z</dc:date>
    </item>
  </channel>
</rss>

