<?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: Regex help!!! in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/216848#M176010</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;... | eval newfield=replace(Indicator_Value,"[\[\]]","")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 30 Dec 2016 16:47:01 GMT</pubDate>
    <dc:creator>twinspop</dc:creator>
    <dc:date>2016-12-30T16:47:01Z</dc:date>
    <item>
      <title>Regex help!!!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/216847#M176009</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Can someone please help with formatting IP address or FQDN,we nee to remove [ ] in the below.&lt;/P&gt;

&lt;P&gt;These below details are available in field name "Indicator_Value"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;221[.]138[.]128[.]116
www[.]cderlearn[.]com
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2016 16:39:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/216847#M176009</guid>
      <dc:creator>splunker9999</dc:creator>
      <dc:date>2016-12-30T16:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help!!!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/216848#M176010</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;... | eval newfield=replace(Indicator_Value,"[\[\]]","")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Dec 2016 16:47:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/216848#M176010</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2016-12-30T16:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help!!!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/216849#M176011</link>
      <description>&lt;P&gt;Try this using &lt;CODE&gt;mode=sed&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your query to return events
| rex field=Indicator_Value mode=sed "s/\[//g
s/\]//g"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please ensure to keep the string &lt;CODE&gt;"s/\[//g&lt;/CODE&gt; and &lt;CODE&gt;s/\]//g"&lt;/CODE&gt; split over two lines exactly how it appears in the query. Take care of the &lt;CODE&gt;" (double quotes)&lt;/CODE&gt; to be same as it appears in the query.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2016 22:14:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/216849#M176011</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2016-12-30T22:14:15Z</dc:date>
    </item>
  </channel>
</rss>

